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? :-) david -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]