develooper Front page | perl.beginners | Postings from March 2002

RE: output to a textfile

Thread Previous | Thread Next
Lakhani, Indu
March 19, 2002 11:08
RE: output to a textfile
Message ID:
print DATA "information";

-----Original Message-----
From: Matthew Harrison []
Sent: Tuesday, March 19, 2002 1:47 PM
Subject: output to a textfile

i have opened a filehandle to a textfile with:

open(DATA, ">/home/edhunter/0001.txt") or die "Could not attach filehandle 

but what is the syntax to write into it? i have tried everthing i can find. 
I would be very grateful if someone could just show me an example of the 
write line. 


Matthew Harrison
Internet/Network Services Administrator
Peanut-Butter Cheesecake Hosting Services

To unsubscribe, e-mail:
For additional commands, e-mail:

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About