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 BEGIN { unless (-d 'blib') { chdir 't' if -d 't'; @INC = '../lib'; require Config; import Config; keys %Config; # Silence warning if ($Config{extensions} !~ /\bList\/Util\b/) { print "1..0 # Skip: List::Util was not built\n"; exit 0; } } } use Scalar::Util (); use Test::More (grep { /set_prototype/ } @Scalar::Util::EXPORT_FAIL) ? (skip_all => 'set_prototype requires XS version') : (tests => 13); Scalar::Util->import('set_prototype'); sub f { } is( prototype('f'), undef, 'no prototype'); $r = set_prototype(\&f,'$'); is( prototype('f'), '$', 'set prototype'); is( $r, \&f, 'return value'); set_prototype(\&f,undef); is( prototype('f'), undef, 'remove prototype'); set_prototype(\&f,''); is( prototype('f'), '', 'empty prototype'); sub g (@) { } is( prototype('g'), '@', '@ prototype'); set_prototype(\&g,undef); is( prototype('g'), undef, 'remove prototype'); sub stub; is( prototype('stub'), undef, 'non existing sub'); set_prototype(\&stub,'$$$'); is( prototype('stub'), '$$$', 'change non existing sub'); sub f_decl ($$$$); is( prototype('f_decl'), '$$$$', 'forward declaration'); set_prototype(\&f_decl,'\%'); is( prototype('f_decl'), '\%', 'change forward declaration'); eval { &set_prototype( 'f', '' ); }; print "not " unless ok($@ =~ /^set_prototype: not a reference/, 'not a reference'); eval { &set_prototype( \'f', '' ); }; ok($@ =~ /^set_prototype: not a subroutine reference/, 'not a sub reference');