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

RE: output to a textfile

Thread Previous | Thread Next
From:
Nikola Janceski
Date:
March 19, 2002 10:53
Subject:
RE: output to a textfile
Message ID:
1449413DA482D311B67000508B5A12F50592DEFC@nyexchange01.summithq.com
print DATA "put your stuff here";

perldoc -f print
print FILEHANDLE LIST;


> -----Original Message-----
> From: Matthew Harrison [mailto:edhunter@peanutbuttercheesecake.co.uk]
> Sent: Tuesday, March 19, 2002 1:47 PM
> To: beginners@perl.org
> 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 
> /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
> 

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About