in reply to savefile( $filename, $data )

You could print hash data as lines of 'key=value':
/HASH/ && do { print($FH "$_=$$data{$_}\n") foreach (keys(%$data)); last CASE; };

Remember: There's always one more bug.

Replies are listed 'Best First'.
Re^2: savefile( $filename, $data )
by harleypig (Monk) on Jul 30, 2005 at 05:04 UTC
    Yeah, but how I handle a hash differs on a case by case basis while arrays and scalars are almost always handled the same. It's easy to modify that instance after a cut-n-paste.
    Harley J Pig