in reply to savefile( $filename, $data )

You might consider checking out File::Slurp.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Replies are listed 'Best First'.
Re^2: savefile( $filename, $data )
by harleypig (Monk) on Jul 29, 2005 at 18:13 UTC

    I use that when I can, but I have a lot of clients who, for whatever reason, can't or won't use CPAN modules.

    Harley J Pig