summaryrefslogtreecommitdiff
path: root/cpan/IO-Compress/examples/io/anycat
blob: 9db9c41faf2b9ae20ed200c447b9d3ef20ab1f27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/local/bin/perl

use strict ;
use warnings ;

use IO::Uncompress::AnyInflate qw( anyinflate $AnyInflateError );

@ARGV = '-' unless @ARGV ;

foreach my $file (@ARGV) {

    anyinflate $file       => '-',
               Transparent => 1,
               Strict      => 0,
         or die "Cannot uncompress '$file': $AnyInflateError\n" ;

}