Answer Posted / raghav
To open a file:
open (FILE, "<raghav.txt") || die ("File Cannot be opened");
Where FILE is the file handle for this file.
Here the file is opened in read mode.
Put > for write mode
put >> for append mode.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
“The methods defined in the parent class will always override the methods defined in the base class”. What does this statement means?
what is Perl one liner?
What is 'rollback' command in perl?
Explain different types of perl operators.
Enlist the advantages of using c over perl?
Differentiate between arrays and list in perl.
How do I replace every TAB character in a file with a comma?
How can memory be managed in Perl?
What is the function of cgiwrap in cgi programming?
Write syntax to add two arrays together in perl?
How to prevent file truncation in perl?
Where the command line arguments are stored and if you want to read command-line arguments with Perl, how would you do that?
Explain about typeglobs?
Which has the highest precedence, List or Terms? Explain?
Explain lists ?