Let's keep our discussions on the list, so we can all help and learn.
On Jun 10, 2004, at 1:15 PM, jason corbett wrote:
This statement ( print "%record}"."\n"; print "%record}"."\n"; )
from my script below keeps giving the error
use of uninitialized value in list argument at <filename> line <##>,
<STDLIN> line 3.
How about this? What does this one mean?
You did not put a script below for me to examine.
Generally, printing a hash should look something like:
print "$_ => $hash{$_}\n" foreach keys %hash;
If you instead have a reference to a hash, you need a minor change:
print "$_ => $hash->{$_}\n" foreach keys %$hash;
Hope that helps.
James
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>