Thread Pseudo Hashes
(15 answers)
Opened by BrownWolf at 2003-08-30 05:18
@strat:
ist ein bisschen anders: my $pseudohash = [ { 'key1' => 1, 'key2' => 2, 'key3' => 3 }, value1, value2, value3 ]; print $pseudohash->{'key1'}; # verwendung wie Hash; wird intern umgesetzt auf: print $pseudohash->[ $pseudohash->[0]->{'key1'} ]; Edit: Grün = strats änderungen\n\n <!--EDIT|pq|1062263292--> Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wie frage ich & perlintro brian's Leitfaden für jedes Perl-Problem |