How do you open a file for writing?

Answer Posted / ankur

open FP,">","myfile.txt"
print FP "Hello World!!";
close FP;

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

We all know private variables exist in perl. But do private METHODS exist in perl ? Eg ?

2009


What is the importance of perl warnings? How do you turn them on?

563


what are steps to do to lock the sony ericsson mobile with password?

1822


When does circular reference occur?

533


What is q (single q) operator in perl?

542






How do I debug a perl program?

526


Explain 'grep' function.

552


Explain perl.

564


Does Perl have reference type?

533


How to start perl in interactive mode?

570


what are the two ways to get private values inside a subroutine or block?

515


What is the function of cgiwrap in cgi programming?

500


What are the steps involved when the cgi program starts running?

516


“The methods defined in the parent class will always override the methods defined in the base class”. What does this statement means?

541


What exactly is grooving and shortening of the array?

600