in reply to Re^2: Print hash except first value
in thread Print hash except first value
Update: ...which I now see isn't what you asked. In fact, I don't know what you are trying to do. I don't see what the hash has to do with anything. As best as I can tell, you want a variation of
for my $skip (0..$#names) { print("-------\n"); for my $i (0..$#names) { next if $i == $skip; my $n = $names[$i]; print("$n, $hash{$n}\n"); } print("* Note removal of element $skip\n"); print("\n"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Print hash except first value
by joec_ (Scribe) on Dec 20, 2008 at 22:34 UTC | |
by ikegami (Patriarch) on Dec 20, 2008 at 22:36 UTC | |
by joec_ (Scribe) on Dec 20, 2008 at 22:44 UTC | |
by jwkrahn (Abbot) on Dec 21, 2008 at 03:52 UTC | |
by joec_ (Scribe) on Dec 21, 2008 at 13:20 UTC | |
by ikegami (Patriarch) on Dec 21, 2008 at 17:49 UTC | |
by swampyankee (Parson) on Dec 21, 2008 at 17:38 UTC |