Sweet thanks!
> On Mon, 10 Feb 2003 12:32:16 -0600, 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);
>
> Have a look to the CPAN module File::Slurp;
>
> Here's its synopsis:
> use File::Slurp;
>
> $all_of_it = read_file($filename);
> @all_lines = read_file($filename);
>
> write_file($filename, @contents)
>
> overwrite_file($filename, @new_contnts);
>
> append_file($filename, @additional_contents);
>
> @files = read_dir($directory);
>
>
> Greetings,
> Janek
>
> --
> 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]