Answer Posted / ankur
open FP,">","myfile.txt";
print FP "Hello World!!";
close FP;
# > for write
# < for read
# >> for read and write
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How to open a directory in perl?
What does next statement do in perl?
What do you mean by context of a subroutine?
What happens when you return a reference to a private variable?
How will you open a file in read-only mode in perl?
What does `$result = f() .. g()' really return?
You want to add two arrays together. How would you do that?
What is use of ‘->’ symbol?
What is a perl references?
How to deleting an existing file in perl programming?
Explain the different types of data perl can handle.
Explain 'grep' function.
What is perl scripting?
What does last statement do in perl?
what are the steps involved in reading a cgi script on the server?