perlbeginner10 has asked for the wisdom of the Perl Monks concerning the following question:
But it gives the error message:for my $key (keys %hashs) { if($hashs{$key}{$_} > 1 ) print "$key - $hashs{$key}{$_} -> $_\n" for keys %{$hashs{$key +}} ; }
Can you please tell me how to correctly print? The values of the hash is either 1 or greater than 1.Use of uninitialized value in numeric gt (>) at test.pl line 33, <$tes +tdataset> line 7.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: printing Hash
by wfsp (Abbot) on Mar 25, 2006 at 13:02 UTC | |
Re: printing Hash
by bart (Canon) on Mar 25, 2006 at 13:16 UTC | |
by perlbeginner10 (Acolyte) on Mar 25, 2006 at 16:51 UTC | |
by bart (Canon) on Mar 25, 2006 at 16:56 UTC | |
by perlbeginner10 (Acolyte) on Mar 26, 2006 at 02:59 UTC | |
Re: printing Hash
by ahmad (Hermit) on Mar 25, 2006 at 13:01 UTC | |
Re: printing Hash
by njcodewarrior (Pilgrim) on Mar 25, 2006 at 13:14 UTC | |
Re: printing Hash
by davidrw (Prior) on Mar 25, 2006 at 14:26 UTC | |
Re: printing Hash
by sh1tn (Priest) on Mar 25, 2006 at 13:59 UTC | |
Re: printing Hash
by gube (Parson) on Mar 25, 2006 at 13:23 UTC |