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 /
Memoize /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
array.t
1.41
KB
-r--r--r--
2014-12-27 11:48
array_confusion.t
771
B
-r--r--r--
2014-12-27 11:48
correctness.t
3.04
KB
-r--r--r--
2014-12-27 11:48
errors.t
1.38
KB
-r--r--r--
2014-12-27 11:48
expfile.t
1.32
KB
-r--r--r--
2014-12-27 11:48
expire.t
943
B
-r--r--r--
2014-12-27 11:48
expmod_n.t
1.1
KB
-r--r--r--
2014-12-27 11:48
expmod_t.t
2.36
KB
-r--r--r--
2014-12-27 11:48
flush.t
614
B
-r--r--r--
2014-12-27 11:48
normalize.t
1.38
KB
-r--r--r--
2014-12-27 11:48
prototype.t
570
B
-r--r--r--
2014-12-27 11:48
speed.t
2.99
KB
-r--r--r--
2014-12-27 11:48
tie.t
1.54
KB
-r--r--r--
2014-12-27 11:48
tie_gdbm.t
1.23
KB
-r--r--r--
2014-12-27 11:48
tie_ndbm.t
1.31
KB
-r--r--r--
2014-12-27 11:48
tie_sdbm.t
1.41
KB
-r--r--r--
2014-12-27 11:48
tie_storable.t
1.29
KB
-r--r--r--
2014-12-27 11:48
tiefeatures.t
1.18
KB
-r--r--r--
2014-12-27 11:48
unmemoize.t
520
B
-r--r--r--
2014-12-27 11:48
Save
Rename
#!/usr/bin/perl use lib qw(. ..); use Memoize 0.45 qw(memoize unmemoize); use Fcntl; sub i { $_[0]; } sub c119 { 119 } sub c7 { 7 } sub c43 { 43 } sub c23 { 23 } sub c5 { 5 } sub n { $_[0]+1; } eval {require GDBM_File}; if ($@) { print "1..0\n"; exit 0; } print "1..4\n"; $file = "md$$"; 1 while unlink $file, "$file.dir", "$file.pag"; tryout('GDBM_File', $file, 1); # Test 1..4 1 while unlink $file, "$file.dir", "$file.pag"; sub tryout { require GDBM_File; my ($tiepack, $file, $testno) = @_; tie my %cache => $tiepack, $file, O_RDWR | O_CREAT, 0666 or die $!; memoize 'c5', SCALAR_CACHE => [HASH => \%cache], LIST_CACHE => 'FAULT' ; my $t1 = c5(); my $t2 = c5(); print (($t1 == 5) ? "ok $testno\n" : "not ok $testno\n"); $testno++; print (($t2 == 5) ? "ok $testno\n" : "not ok $testno\n"); unmemoize 'c5'; # Now something tricky---we'll memoize c23 with the wrong table that # has the 5 already cached. memoize 'c23', SCALAR_CACHE => [HASH => \%cache], LIST_CACHE => 'FAULT' ; my $t3 = c23(); my $t4 = c23(); $testno++; print (($t3 == 5) ? "ok $testno\n" : "not ok $testno\n"); $testno++; print (($t4 == 5) ? "ok $testno\n" : "not ok $testno\n"); unmemoize 'c23'; }