Thread hashref (3 answers)
Opened by Froschpopo at 2007-05-09 13:43

Froschpopo
 2007-05-09 13:43
#76594 #76594
User since
2003-08-15
2653 Artikel
BenutzerIn
[default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
use Image::Info qw(image_info image_type);

my $info = image_type(\$binary_data);

for (keys %{$info}) {
print "$_ => $info->{$_}\n"; #funktioniert
}

print $info->{image_type},"\n"; #funktioniert NICHT!!


warum funktioniert letzteres nicht, aber Erstes? Das ist doch dasselbe!
Erstes ergibt nämlich auch: image_type
warum kann ich dann nicht direkt darauf zugreifen?

View full thread hashref