Plankton has asked for the wisdom of the Perl Monks concerning the following question:
Friends
Why does this ...
... outputs this ...#!/usr/bin/perl my %HoTypes = ( 'PythonQuestions' => [ '[PythonQuestions|Python Questions]', 318, +3, 10 ], 'OffTopics' => [ '[OffTopics|Off Topic Post]', 500, +3, 10 ], 'notes' => [ 'Notes', 283, +3, 20 ] ); for my $T ( keys %HoTypes ) { my $nodeStr = $HoTypes{$T}[0]; print "$T -> $nodeStr\n"; }
... and not this ...PythonQuestions -> [PythonQuestions|Python Questions] notes -> Notes OffTopics -> [OffTopics|Off Topic Post]
PythonQuestions -> [PythonQuestions|Python Questions] OffTopics -> [OffTopics|Off Topic Post] notes -> Notes
| Plankton: 1% Evil, 99% Hot Gas. | Snakehandlers! |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I don't understand why keys %hash does this ...
by tachyon (Chancellor) on Oct 05, 2004 at 06:04 UTC | |
|
Re: I don't understand why keys %hash does this ...
by FoxtrotUniform (Prior) on Oct 05, 2004 at 06:04 UTC | |
|
Re: I don't understand why keys %hash does this ...
by si_lence (Deacon) on Oct 05, 2004 at 06:13 UTC | |
|
Re: I don't understand why keys %hash does this ...
by Roger (Parson) on Oct 05, 2004 at 06:20 UTC | |
|
Re: I don't understand why keys %hash does this ...
by grinder (Bishop) on Oct 05, 2004 at 08:02 UTC | |
|
Re: I don't understand why keys %hash does this ...
by cLive ;-) (Prior) on Oct 05, 2004 at 08:06 UTC | |
|
Re: I don't understand why keys %hash does this ...
by Anonymous Monk on Oct 05, 2004 at 09:03 UTC | |
|