Thread exists (14 answers)
Opened by Froschpopo at 2006-09-19 19:50

esskar
 2006-09-19 20:15
#70064 #70064
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
[quote=Froschpopo,19.09.2006, 17:50]
Code: (dl )
1
2
3
4
my %hash = (
         'key'     =>     [\%foobar, 1]
);
my $hashref = \$hash{key};
[/quote]
was willst du mit einer referenz auf eine array referenz?

du willst wohl das:
Code: (dl )
my $hashref = exists $hash{key} : $hash{key} : undef;

View full thread exists