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
You want to empty an array. How would you do that?
Define operators used in perl?
Explain what is the scalar data and scalar variables in Perl?
What is v-strings?
What are perl strings?
explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.
Explain chomp?
Explain the meaning of perl one-liner?
Which functions in Perl allows you to include a module file or a module and what is the difference between them?
For a situation in programming, how can you determine that Perl is a suitable?
What is the tk module?
Who created perl?
What does read () command do?
What is the use of "stderr()"?
What does Perl do if you try to exploit the execve(2) race involving setuid scripts?