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 /
dist /
threads-shared /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
0nothread.t
1.8
KB
-r--r--r--
2014-12-27 11:48
av_refs.t
2.05
KB
-r--r--r--
2014-12-27 11:48
av_simple.t
4
KB
-r--r--r--
2014-12-27 11:49
blessed.t
4.51
KB
-r--r--r--
2014-12-27 11:48
clone.t
4.94
KB
-r--r--r--
2014-12-27 11:48
cond.t
6.14
KB
-r--r--r--
2014-12-27 11:48
disabled.t
1.27
KB
-r--r--r--
2014-12-27 11:48
dualvar.t
8.29
KB
-r--r--r--
2014-12-27 11:48
hv_refs.t
2.97
KB
-r--r--r--
2014-12-27 11:48
hv_simple.t
1.83
KB
-r--r--r--
2014-12-27 11:48
no_share.t
1.29
KB
-r--r--r--
2014-12-27 11:48
object.t
4.03
KB
-r--r--r--
2014-12-27 11:48
object2.t
12.88
KB
-r--r--r--
2014-12-27 11:49
shared_attr.t
1.74
KB
-r--r--r--
2014-12-27 11:48
stress.t
5.93
KB
-r--r--r--
2014-12-27 11:48
sv_refs.t
2.35
KB
-r--r--r--
2014-12-27 11:48
sv_simple.t
1.6
KB
-r--r--r--
2014-12-27 11:48
utf8.t
2.12
KB
-r--r--r--
2014-12-27 11:48
wait.t
9.55
KB
-r--r--r--
2014-12-27 11:48
waithires.t
10.43
KB
-r--r--r--
2014-12-27 11:48
Save
Rename
use strict; use warnings; use Test::More (tests => 53); ### Start of Testing ### my @array; my %hash; sub hash { my @val = @_; is(keys %hash, 0, "hash empty"); $hash{0} = $val[0]; is(keys %hash,1, "Assign grows hash"); is($hash{0},$val[0],"Value correct"); $hash{2} = $val[2]; is(keys %hash,2, "Assign grows hash"); is($hash{0},$val[0],"Value correct"); is($hash{2},$val[2],"Value correct"); $hash{1} = $val[1]; is(keys %hash,3,"Size correct"); my @keys = keys %hash; is(join(',',sort @keys),'0,1,2',"Keys correct"); my @hval = @hash{0,1,2}; is(join(',',@hval),join(',',@val),"Values correct"); my $val = delete $hash{1}; is($val,$val[1],"Delete value correct"); is(keys %hash,2,"Size correct"); while (my ($k,$v) = each %hash) { is($v,$val[$k],"each works"); } %hash = (); is(keys %hash,0,"Clear hash"); } sub array { my @val = @_; is(@array, 0, "array empty"); $array[0] = $val[0]; is(@array,1, "Assign grows array"); is($array[0],$val[0],"Value correct"); unshift(@array,$val[2]); is($array[0],$val[2],"Unshift worked"); is($array[-1],$val[0],"-ve index"); push(@array,$val[1]); is($array[-1],$val[1],"Push worked"); is(@array,3,"Size correct"); is(shift(@array),$val[2],"Shift worked"); is(@array,2,"Size correct"); is(pop(@array),$val[1],"Pop worked"); is(@array,1,"Size correct"); @array = (); is(@array,0,"Clear array"); } ok((require threads::shared),"Require module"); if ($threads::shared::VERSION && ! $ENV{'PERL_CORE'}) { diag('Testing threads::shared ' . $threads::shared::VERSION); } array(24, [], 'Thing'); hash(24, [], 'Thing'); threads::shared->import(); share(\@array); array(24, 42, 'Thing'); share(\%hash); hash(24, 42, 'Thing'); exit(0); # EOF