Skip to content

Instantly share code, notes, and snippets.

@johndbritton
Created November 19, 2013 09:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johndbritton/7542739 to your computer and use it in GitHub Desktop.
Save johndbritton/7542739 to your computer and use it in GitHub Desktop.
Explained: Zlib decompress with Perl
decompress="perl -MCompress::Zlib -e 'undef $/; print uncompress(<>)'"
  1. perl - Execute the Perl binary
  2. -MCompress::Zlib - Load the Zlib Perl module
  3. -e '...' - Execute the specified Perl code
  4. undef $/; - Undefine the input record separator to read input to the end
  5. <> - Read from standard input
  6. uncompress(...) - Use uncompress the input using Zlib
  7. print ... - Print the results to the screen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment