Front page | perl.beginners |
Postings from March 2002
Re: output to a textfile
Thread Previous
|
Thread Next
From:
Craig Sharp
Date:
March 19, 2002 11:49
Subject:
Re: output to a textfile
Message ID:
sc974f49.050@roushind.com
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
cashar@roushind.com
====================================================
I have not lost my mind, it's backed up on tape somewhere!
====================================================
>>> Matthew Harrison <edhunter@peanutbuttercheesecake.co.uk> 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
/home/edhunter/0001.txt\n";
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.
cheers
--
Matthew Harrison
Internet/Network Services Administrator
Peanut-Butter Cheesecake Hosting Services
Genstate
www.peanutbuttercheesecake.co.uk
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
Thread Previous
|
Thread Next