Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
But what I got ismy %Cls = {'P','a','N','b','U','c'}; print %Cls.": \n\n"; while ( my ($k, $v) = each(%Cls) ) { print "$k => $v\n"; }
I run in perl 5.8.8, what 's wrong of my code?1/8: HASH(0x124290) =>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Hash problem: each() failure
by Corion (Patriarch) on Feb 22, 2008 at 09:43 UTC | |
Re: Hash problem: each() failure
by hipowls (Curate) on Feb 22, 2008 at 09:55 UTC | |
Re: Hash problem: each() failure
by cdarke (Prior) on Feb 22, 2008 at 14:11 UTC | |
Re: Hash problem: each() failure
by peter (Sexton) on Feb 22, 2008 at 13:14 UTC | |
Re: Hash problem: each() failure
by DigitalKitty (Parson) on Feb 23, 2008 at 18:12 UTC | |
Re: Hash problem: each() failure
by Anonymous Monk on Feb 24, 2008 at 17:05 UTC | |
Re: Hash problem: each() failure
by Anonymous Monk on Feb 24, 2008 at 16:46 UTC | |
Re: Hash problem: each() failure
by Anonymous Monk on Feb 22, 2008 at 22:26 UTC |