The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

use strict;
use IO::Uncompress::Gunzip qw( $GunzipError );
sub load {
my $fname = 'foo.gz';
IO::Uncompress::Gunzip->new($fname)
or die "gzip failed: $GunzipError\n";
}