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
Differentiate between use and require, my and local, for and foreach and exec and system
What rules must be followed by modules in perl.
What does localtime() do in perl?
How do I pass a command line argument in perl?
Explain which feature of PERL provides code reusability?
Write a program that shows the distinction between child and parent process?
What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?
How to remove a directory in perl?
What is the purpose of _package_ literal?
How and what are closures implemented in perl?
How many data types are there in perl?
Explain the execution of a program in perl.
Why is it hard to call this function: sub y { "because" } ?
Explain perl one-liner?
How to copy a file in perl?