in reply to Getting the Value of a single hash key
Since the key is usually on the left side of the equal sign, shouldn't that be:($value, $key) = split(/=/, $line);
I changed that line and your code worked for my test case.($key, $value) = split(/=/, $line);
UPDATE: regarding your reply below, please show us what your data looks like. That is, what are the contents of the F filehandle?
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: (jeffa) Re: Getting the Value of a single hash key
by Anonymous Monk on May 06, 2003 at 19:42 UTC | |
by ChrisS (Monk) on May 06, 2003 at 19:58 UTC |