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
List the files in current directory sorted by size ?
Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)
Why does Perl not have overloaded functions?
How can memory be managed in Perl?
What are the steps involved in configuring a server using cgi programming?
What are prefix dereferencer? List them.
Explain the use of 'my' keyword in perl?
How do I replace every TAB character in a file with a comma?
what is Polymorphism in Perl?
Explain the execution of a program in perl.
Differentiate use and require?
How many ways can we express string in Perl?
How to read multi lines from a file in perl?
How to read file into hash array ?
In Perl, what is grep function used for?