Thread Array trotz hash definition (10 answers)
Opened by Strazke at 2005-09-16 03:43

format_c
 2005-09-16 12:00
#5602 #5602
User since
2003-08-04
1706 Artikel
HausmeisterIn
[Homepage] [default_avatar]
Strazke: You're speaking in riddles :-p

Die Definition ähnelt sehr der von einem Array da der "=>" Operator eigentlich nix anderes als ein "," ist.
Code: (dl )
1
2
3
4
5
6
7
my %peers1 = ('Haus','Tuer','Auto','Rad');
my %peers2 = ('Haus'=>'Tuer',
             'Auto'=>'Rad'
             );
use Data::Dumper;
print Dumper(\%peers1);
print Dumper(\%peers2);


Gruß Alex\n\n

<!--EDIT|format_c|1126857727-->

View full thread Array trotz hash definition