Thread Hash in Sub dereferenzieren (18 answers)
Opened by Opaxtl at 2007-04-19 16:24

Gast Gast
 2007-04-19 16:37
#76039 #76039
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
sub foo {
   my $href = shift;
   # Arbeit  mit Referenz Hash
   foreach my $key (keys %$href) {
       my $value = $href->{$key};
       print "$key => $value\n";
   }
}

my %hash = ('a'=>1, b=>2);
foo(\%hash)


edit pq: code-tags hinzugefĆ¼gt\n\n

<!--EDIT|pq|1177008300-->

View full thread Hash in Sub dereferenzieren