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
How to change a directory in perl?
Is perl compiler or interpreter?
How would you ensure the re-use and maximum readability of your perl code?
Define print() function in perl?
How to find the length of an array in perl?
How to remove a directory in perl?
Explain perl one-liner?
What does -> symbol indicates in Perl?
How do I replace every character in a file with a comma?
What is the use of '>>' in perl?
What is the use of -t?
Differentiate use and require?
How to close a file in perl?
Explain goto expr?
What does perl do in linux?