Prv8 Shell
Server : Apache
System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : matalashes ( 1004)
PHP Version : 8.1.29
Disable Function : NONE
Directory :  /usr/share/doc/perl-IO-Compress-2.061/compress-zlib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/doc/perl-IO-Compress-2.061/compress-zlib/gzcat
#!/usr/bin/perl

use strict ;
use warnings ;

use Compress::Zlib ;

#die "Usage: gzcat file...\n"
#    unless @ARGV ;

my $filename ;

@ARGV = '-' unless @ARGV ;

foreach my $filename (@ARGV) {
    my $buffer ;

    my $gz = gzopen($filename, "rb") 
         or die "Cannot open $filename: $gzerrno\n" ;

    print $buffer while $gz->gzread($buffer) > 0 ;

    die "Error reading from $filename: $gzerrno" . ($gzerrno+0) . "\n" 
        if $gzerrno != Z_STREAM_END ;
    
    $gz->gzclose() ;
}

haha - 2025