in reply to Re: Counting keys with defined or undefined elements in a hash
in thread Counting keys with defined or undefined elements in a hash
#!/usr/bin/perl -lw use strict; my %foo = (0 => 0, 1 => 1, 2 => 2); $_++ for values %foo; print "$_ => $foo{$_}" for sort keys %foo;
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^2: Counting keys with defined or undefined elements in a hash (behaviour of values())
by Oberon (Monk) on Jun 07, 2003 at 01:56 UTC | |
by Aristotle (Chancellor) on Jun 07, 2003 at 02:04 UTC | |
by Oberon (Monk) on Jun 07, 2003 at 02:18 UTC | |
by Aristotle (Chancellor) on Jun 07, 2003 at 02:27 UTC | |
by Oberon (Monk) on Jun 07, 2003 at 02:34 UTC | |
|