Thread funktion und referenz (15 answers)
Opened by shaihulud at 2006-05-24 18:26

bloonix
 2006-05-24 19:22
#66574 #66574
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
meinst du sowas?

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
use warnings;

my %hash = (key1 => 1, key2 => 2, key3 => 3);

deref(\%hash);

sub deref {
  my %hash = %{$_[0]};
  for (keys %hash) {
     print "$_:$hash{$_}\n";
  }
}


Der Hash wird aber kopiert.\n\n

<!--EDIT|opi|1148484580-->
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.

View full thread funktion und referenz