in reply to Re: Writing a hash of two variables to a file
in thread Writing a hash of two variables to a file
open (PICKEMDB, '>>', "pickemdb.txt") or die "Can't write results."; $pickemdb{'user'} = $user; $pickemdb{'lastweek'} = $score; ###### Errr.. not sure if the above are part of the code or where just + a test that I commented out in case I might use it later. %pickemdb = ($user => 'user', $score => 'score'); print %pickemdb; print %pickemdb >> PICKEMDB; close (PICKEMDB);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Writing a hash of two variables to a file
by ikegami (Patriarch) on Oct 25, 2006 at 04:30 UTC | |
|
Re^3: Writing a hash of two variables to a file
by wfsp (Abbot) on Oct 25, 2006 at 09:06 UTC |