Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change "gzip -dc" to IO::Uncompress:AnyUncompress ? #38

Open
tseemann opened this issue Apr 22, 2019 · 1 comment
Open

Change "gzip -dc" to IO::Uncompress:AnyUncompress ? #38

tseemann opened this issue Apr 22, 2019 · 1 comment

Comments

@tseemann
Copy link

https://perldoc.perl.org/IO/Uncompress/AnyUncompress.html

 # read first line to see if we have any data
  my $unzip = IO::Uncompress::AnyUncompress->new($fname);
  my $header = scalar(<$unzip>); # read first line
  $header or err("The input appears to be empty");

it's core Perl and is easy as using open().

@tseemann
Copy link
Author

was IO::Uncompress::AnyUncompres in 5.10 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant