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
Explain the meaning of subroutine?
How can you define “my” variables scope in Perl and how it is different from “local” variable scope?
Explain the use of 'my' keyword in perl?
How can you create anonymous subroutines?
Which guidelines by Perl modules must be followed?
How can arrays be tied?
What is the use of '>>' in perl?
Hi, I am a accountant. I am preparing a balance sheet but because of staff shortage and time pressures I cant complete it on time. There is lot of common data with last years which I need not retype and I can manage by editing last year’s balance sheet ? Is their any software on net where I can do this easily??
What are the arguements we normally use for perl interpreter?
What are the options that can be used to avoid logic errors in perl?
What is the use of -n and -p options?
How can you replace the characters from a string and save the number of replacements?
What are the arguments and what do they mean in perl programming?
What are the different instances used in cgi overhead?
Explain the functioning of conditional structures in perl.