Move IO::Compress from ext/ to cpan/
[p5sagit/p5-mst-13.2.git] / cpan / IO-Compress / examples / io / anycat
CommitLineData
319fab50 1#!/usr/local/bin/perl
2
3use strict ;
4use warnings ;
5
6use IO::Uncompress::AnyInflate qw( anyinflate $AnyInflateError );
7
8@ARGV = '-' unless @ARGV ;
9
10foreach my $file (@ARGV) {
11
12 anyinflate $file => '-',
13 Transparent => 1,
14 Strict => 0,
15 or die "Cannot uncompress '$file': $AnyInflateError\n" ;
16
17}