in reply to Newbie(and notso newbie?) warning!
What's funny is that when I run this bad code:Use of uninitialized value in delete at Attempt to free unreferenced scalar
I get alot of warnings then a core dump. If I add 'use warnings' (or -w or $^W = 1), I get a few warnings and I don't get the core dump. Are you using strict and warnings? My guess is no, since if you were that line would be:%hsh = qw(a 1 b 2 c 3 d 4); for $key (%hsh) { delete $hsh{$key}; } $num = %hsh; print "$num\n";
foreach my $session (%Sessions) ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Newbie(and notso newbie?) warning!
by Rex(Wrecks) (Curate) on Nov 13, 2001 at 04:40 UTC |