Answer Posted / raj
Files are opened using the open and sysopen function.
Either function may be passed up to 4 arguments, the first
is always the file handle thenfile name also known as a URL
or filepath, flags, and finally any permissions to be
granted to this file.
$FH = "filehandle";
$FilePath = "myhtml.html";
open(FH, $FilePath, permissions);
or
sysopen(FH, $FileName, permission);
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of “_file_ literal” and “_line_ literal” in perl?
How can information be put into hashes?
What is the function of cgiwrap in cgi programming?
How can we create perl programs in unix, windows nt, macintosh and os/2 ?
You want to add two arrays together. How would you do that?
What does 'do' statement do in perl?
How many loop control keywords are there in perl?
Which functions in perl allows you to include a module file. State their differences.
Define print() function in perl?
Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.
Explain tk?
How do find the length of an array?
What are the arguements we normally use for perl interpreter?
Mention how many ways you can express string in Perl?
How to deleting an existing file in perl programming?