Aaah, sehr gut, danke dir! Wieder eine Variante die ich m. W. bisher nicht hatte.
Code:
use strict;
use warnings;
use 5.010;
require IO::Uncompress::Gunzip;
IO::Uncompress::Gunzip->import(qw(gunzip $GunzipError));
if (gunzip('x' => 'y')) {
}
else { die "gunzip failed: $GunzipError\n" }
Jetzt noch eine Winzigkeit
Global symbol "$GunzipError" requires explicit package name at test.pl line 10.
Wie bekomme ich das hin? Hab vorher ein
my $GunzipError und auch ein
IO::Uncompress::Gunzip->import(my $GunzipError) versucht. Alles ohne Erfolg.
10 print "Hallo"
20 goto 10