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 know whether a key exists or not in perl?
what are steps to do to lock the sony ericsson mobile with password?
what are the steps involved in reading a cgi script on the server?
What is the use of command “use strict”?
What is “grep” function in perl?
Explain what is perl language?
What is goto statement in perl?
Explain join function in perl?
Explain lists in perl?
Why is it hard to call this function: sub y { "because" } ?
Write an example explaining the use of symbol tables.
Explain which feature of PERL provides code reusability?
Explain perl one-liner?
Define print() function in perl?
How to convert strings into an array in perl?