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 value is returned by a lone `return;’ statement?
What does `$result = f() .. g()' really return?
What are scalars in perl?
What are the various file operations in perl. Explain with example.
Explain the different types of data perl can handle.
You want to concatenate strings with perl. How would you do that?
What is automatic error handling in perl?
How will you open a file in read-only mode in perl?
How to deleting an existing file in perl programming?
What are the arguements we normally use for perl interpreter?
How do find the length of an array?
Explain goto label?
Which functions in perl allows you to include a module file. State their differences.
what is Polymorphism in Perl?
Enlist the advantages of using c over perl?