Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
cpan /
IO-Compress /
t /
compress /
Delete
Unzip
Name
Size
Permission
Date
Action
CompTestUtils.pm
18.11
KB
-r--r--r--
2014-12-27 11:48
any.pl
2.97
KB
-r--r--r--
2014-12-27 11:48
anyunc.pl
2.59
KB
-r--r--r--
2014-12-27 11:48
destroy.pl
2.28
KB
-r--r--r--
2014-12-27 11:48
encode.pl
4.74
KB
-r--r--r--
2014-12-27 11:48
generic.pl
50.95
KB
-r--r--r--
2014-12-27 11:48
merge.pl
9.24
KB
-r--r--r--
2014-12-27 11:48
multi.pl
9.4
KB
-r--r--r--
2014-12-27 11:48
newtied.pl
9.71
KB
-r--r--r--
2014-12-27 11:48
oneshot.pl
53.35
KB
-r--r--r--
2014-12-27 11:49
prime.pl
2.29
KB
-r--r--r--
2014-12-27 11:49
tied.pl
13.02
KB
-r--r--r--
2014-12-27 11:48
truncate.pl
10.03
KB
-r--r--r--
2014-12-27 11:48
zlib-generic.pl
4.68
KB
-r--r--r--
2014-12-27 11:48
Save
Rename
use lib 't'; use strict; use warnings; use bytes; use Test::More ; use CompTestUtils; BEGIN { plan(skip_all => "Destroy not supported in Perl $]") if $] == 5.008 || ( $] >= 5.005 && $] < 5.006) ; # use Test::NoWarnings, if available my $extra = 0 ; $extra = 1 if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 }; plan tests => 15 + $extra ; use_ok('IO::File') ; } sub run { my $CompressClass = identify(); my $UncompressClass = getInverse($CompressClass); my $Error = getErrorRef($CompressClass); my $UnError = getErrorRef($UncompressClass); title "Testing $CompressClass"; { # Check that the class destructor will call close my $lex = new LexFile my $name ; my $hello = <<EOM ; hello world this is a test EOM { ok my $x = new $CompressClass $name, -AutoClose => 1 ; ok $x->write($hello) ; } is anyUncompress($name), $hello ; } { # Tied filehandle destructor my $lex = new LexFile my $name ; my $hello = <<EOM ; hello world this is a test EOM my $fh = new IO::File "> $name" ; { ok my $x = new $CompressClass $fh, -AutoClose => 1 ; $x->write($hello) ; } ok anyUncompress($name) eq $hello ; } { title "Testing DESTROY doesn't clobber \$! etc "; my $lex = new LexFile my $name ; my $out; my $result; { ok my $z = new $CompressClass($name); $z->write("abc") ; $! = 22 ; cmp_ok $!, '==', 22, ' $! is 22'; } cmp_ok $!, '==', 22, " \$! has not been changed by $CompressClass destructor"; { my $uncomp; ok my $x = new $UncompressClass($name, -Append => 1) ; my $len ; 1 while ($len = $x->read($result)) > 0 ; $! = 22 ; cmp_ok $!, '==', 22, ' $! is 22'; } cmp_ok $!, '==', 22, " \$! has not been changed by $UncompressClass destructor"; is $result, "abc", " Got uncompressed content ok"; } } 1;