in reply to Newbie(and notso newbie?) warning!

If you were using warnings you should/would be getting these sorts of warnings:
Use of uninitialized value in delete at Attempt to free unreferenced scalar
What's funny is that when I run this bad code:
%hsh = qw(a 1 b 2 c 3 d 4); for $key (%hsh) { delete $hsh{$key}; } $num = %hsh; print "$num\n";
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:

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
    Ahh, the code was just my typing in the here, I did use my $sessions and I am running with strict and warnings.
    use strict;
    and run perl -w script.pl.

    Since coming here I haven't dared not to.

    There were no warnings and no crashes.

    "Nothing is sure but death and taxes" I say combine the two and its death to all taxes!