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 can I implement the function overloading in Perl ? I read about the operator overloading, I do not know how to implement the function overloading. Thanks in advance ?
How we can navigate the xml documents?
What is perl unshift array function?
Explain grooving and shortening of arrays?
How do you you check the return code of a command in perl?
What is the difference between use and require in perl?
What is the use of "stderr()"?
What happens when you return a reference to a private variable?
Explain the default scope of variables in perl?
How do you match one letter in the current locale?
How to compare two strings in perl?
Why -w argument is used with perl programs?
What is chomp() operator/function?
How are parameters passed to subroutines in perl?
What is cpan ? What are the modules coming under this?