Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: savefile( $filename, $data )

by jdhedden (Deacon)
on Jul 29, 2005 at 19:45 UTC ( [id://479515]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://479515]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-26 01:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found