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 does polymorphism work in perl? Give an example.
Why to use perl?
List the data types that Perl can handle?
What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?
If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?
What is goto statement in perl?
What $! In perl?
What are the functions that can be performed using cgi program?
What is the importance of perl warnings? How do you turn them on?
What is automatic error handling in perl?
In Perl we can show the warnings using some options in order to reduce or avoid the errors. What are that options?
Explain tk?
Explain substr function in perl?
Why Perl aliases are considered to be faster than references?
Explain string comparison operators in perl.