Thread Pseudo Hashes (15 answers)
Opened by BrownWolf at 2003-08-30 05:18

pq
 2003-08-30 19:28
#81433 #81433
User since
2003-08-04
12207 Artikel
Admin1
[Homepage]
user image
@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: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Pseudo Hashes