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 /
Scalar-List-Utils /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
00version.t
611
B
-r--r--r--
2014-12-27 11:49
any-all.t
895
B
-r--r--r--
2014-12-27 11:49
blessed.t
1.27
KB
-r--r--r--
2014-12-27 11:49
dualvar.t
3.57
KB
-r--r--r--
2014-12-27 11:49
first.t
3.76
KB
-r--r--r--
2014-12-27 11:49
getmagic-once.t
823
B
-r--r--r--
2014-12-27 11:49
isvstring.t
648
B
-r--r--r--
2014-12-27 11:49
lln.t
1.34
KB
-r--r--r--
2014-12-27 11:49
max.t
1.3
KB
-r--r--r--
2014-12-27 11:49
maxstr.t
717
B
-r--r--r--
2014-12-27 11:49
min.t
1.29
KB
-r--r--r--
2014-12-27 11:49
minstr.t
716
B
-r--r--r--
2014-12-27 11:49
multicall-refcount.t
263
B
-r--r--r--
2014-12-27 11:49
openhan.t
2.42
KB
-r--r--r--
2014-12-27 11:49
pair.t
2.96
KB
-r--r--r--
2014-12-27 11:49
product.t
1.74
KB
-r--r--r--
2014-12-27 11:49
proto.t
1.44
KB
-r--r--r--
2014-12-27 11:49
readonly.t
1.12
KB
-r--r--r--
2014-12-27 11:49
reduce.t
4.4
KB
-r--r--r--
2014-12-27 11:49
refaddr.t
1.96
KB
-r--r--r--
2014-12-27 11:49
reftype.t
1.38
KB
-r--r--r--
2014-12-27 11:49
shuffle.t
626
B
-r--r--r--
2014-12-27 11:49
stack-corruption.t
630
B
-r--r--r--
2014-12-27 11:49
sum.t
1.68
KB
-r--r--r--
2014-12-27 11:49
sum0.t
204
B
-r--r--r--
2014-12-27 11:49
tainted.t
845
B
-r--r--r--
2014-12-27 11:49
weak.t
2.82
KB
-r--r--r--
2014-12-27 11:49
Save
Rename
#!./perl use strict; use Test::More tests => 20; use List::Util qw(pairgrep pairfirst pairmap pairs pairkeys pairvalues); no warnings 'misc'; # avoid "Odd number of elements" warnings most of the time is_deeply( [ pairgrep { $b % 2 } one => 1, two => 2, three => 3 ], [ one => 1, three => 3 ], 'pairgrep list' ); is( scalar( pairgrep { $b & 2 } one => 1, two => 2, three => 3 ), 2, 'pairgrep scalar' ); is_deeply( [ pairgrep { $a } 0 => "zero", 1 => "one", 2 ], [ 1 => "one", 2 => undef ], 'pairgrep pads with undef' ); { use warnings 'misc'; my $warnings = ""; local $SIG{__WARN__} = sub { $warnings .= $_[0] }; pairgrep { } one => 1, two => 2; is( $warnings, "", 'even-sized list yields no warnings from pairgrep' ); pairgrep { } one => 1, two =>; like( $warnings, qr/^Odd number of elements in pairgrep at /, 'odd-sized list yields warning from pairgrep' ); } { my @kvlist = ( one => 1, two => 2 ); pairgrep { $b++ } @kvlist; is_deeply( \@kvlist, [ one => 2, two => 3 ], 'pairgrep aliases elements' ); } is_deeply( [ pairfirst { length $a == 5 } one => 1, two => 2, three => 3 ], [ three => 3 ], 'pairfirst list' ); is_deeply( [ pairfirst { length $a == 4 } one => 1, two => 2, three => 3 ], [], 'pairfirst list empty' ); is( scalar( pairfirst { length $a == 5 } one => 1, two => 2, three => 3 ), 1, 'pairfirst scalar true' ); ok( !scalar( pairfirst { length $a == 4 } one => 1, two => 2, three => 3 ), 'pairfirst scalar false' ); is_deeply( [ pairmap { uc $a => $b } one => 1, two => 2, three => 3 ], [ ONE => 1, TWO => 2, THREE => 3 ], 'pairmap list' ); is( scalar( pairmap { qw( a b c ) } one => 1, two => 2 ), 6, 'pairmap scalar' ); is_deeply( [ pairmap { $a => @$b } one => [1,1,1], two => [2,2,2], three => [3,3,3] ], [ one => 1, 1, 1, two => 2, 2, 2, three => 3, 3, 3 ], 'pairmap list returning >2 items' ); is_deeply( [ pairmap { $b } one => 1, two => 2, three => ], [ 1, 2, undef ], 'pairmap pads with undef' ); { my @kvlist = ( one => 1, two => 2 ); pairmap { $b++ } @kvlist; is_deeply( \@kvlist, [ one => 2, two => 3 ], 'pairmap aliases elements' ); } # Calculating a 1000-element list should hopefully cause the stack to move # underneath pairmap is_deeply( [ pairmap { my @l = (1) x 1000; "$a=$b" } one => 1, two => 2, three => 3 ], [ "one=1", "two=2", "three=3" ], 'pairmap copes with stack movement' ); is_deeply( [ pairs one => 1, two => 2, three => 3 ], [ [ one => 1 ], [ two => 2 ], [ three => 3 ] ], 'pairs' ); is_deeply( [ pairs one => 1, two => ], [ [ one => 1 ], [ two => undef ] ], 'pairs pads with undef' ); is_deeply( [ pairkeys one => 1, two => 2 ], [qw( one two )], 'pairkeys' ); is_deeply( [ pairvalues one => 1, two => 2 ], [ 1, 2 ], 'pairvalues' );