> 
> 
> Dan Muey wrote:
> 
> > I'm tryin got find the quickest way to creat a file and write to it.
> >  
> > I know I can do
> > open....
> > print FILEHANDLE $stuff;
> > close...
> > and perhaps ad some flocks for good measure
> >  
> > what I'm wondering is if there is a one line way to do it something 
> > like
> >  
> > createfile("filename.txt",$content);
> 
> try something like:
> 
> open(FILE,'>' . $file) ? (print FILE $content) && close(FILE) 
> : die $!;
> 
> but why would you want to do that? :-)
Actually I don't! I figured out what I needed to do with Net::FTP.
What I was trying to do was creat a file on a remote server with content ( html ) that 
was generated by the script.
The way I was doing via Net::FTP didn't work so I thought I may need to creat a local 
version, ftp it, then delete it.

Forunatley I figured out the Net::FTP stor  bit and now have no need to do the messy 
create, ftp, delete dance.

Thanks for your response!

Dan

> 
> david
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to