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

Re: output to a textfile

Thread Previous | Thread Next
Craig Sharp
March 19, 2002 11:49
Re: output to a textfile
Message ID:
How about:

select DATA;

Then all print statements will write to that filehandle.

Craig A. Sharp
Unix Systems Administrator
DNS Administrator
Roush Industries
Office: 734-466-6286
Cell: 734-231-6769
Fax: 734-466-6939
I have not lost my mind, it's backed up on tape somewhere!

>>> Matthew Harrison <> 03/19/02 01:46PM >>>
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