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 strftime() function in perl?
How to check the status of airplane mode (enable/disable) in perl for Android mobile?
Differentiate between arrays and list in perl.
We all know private variables exist in perl. But do private METHODS exist in perl ? Eg ?
What happens when you return a reference to a private variable?
What is 'commit' command in perl?
Explain lists ?
What does next statement do in perl?
How many types of primary data structures in Perl and what do they mean?
Suppose an array contains @arraycontent=(‘ab’, ‘cd’, ‘ef’, ‘gh’). How to print all the contents of the given array?
Explain subroutine in perl?
You want to connect to sql server through perl. How would you do that?
Explain the difference between "my" and "local" variable scope declarations. ?
Does Perl have reference type?
How many loop control keywords are there in perl?