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 /
t /
uni /
Delete
Unzip
Name
Size
Permission
Date
Action
attrs.t
5.1
KB
-r--r--r--
2014-12-27 11:49
bless.t
2.6
KB
-r--r--r--
2014-12-27 11:49
cache.t
1.05
KB
-r--r--r--
2014-12-27 11:49
caller.t
1.88
KB
-r--r--r--
2014-12-27 11:49
case.pl
3.14
KB
-r--r--r--
2014-12-27 11:49
chomp.t
1.9
KB
-r--r--r--
2014-12-27 11:49
chr.t
655
B
-r--r--r--
2014-12-27 11:49
class.t
2.18
KB
-r--r--r--
2014-12-27 11:49
eval.t
652
B
-r--r--r--
2014-12-27 11:49
fold.t
28.46
KB
-r--r--r--
2014-12-27 11:49
goto.t
836
B
-r--r--r--
2014-12-27 11:49
greek.t
4.15
KB
-r--r--r--
2014-12-27 11:49
gv.t
22.39
KB
-r--r--r--
2014-12-27 11:49
labels.t
1.66
KB
-r--r--r--
2014-12-27 11:49
latin2.t
5.19
KB
-r--r--r--
2014-12-27 11:49
lex_utf8.t
2.15
KB
-r--r--r--
2014-12-27 11:49
lower.t
274
B
-r--r--r--
2014-12-27 11:49
method.t
7.93
KB
-r--r--r--
2014-12-27 11:49
opcroak.t
1.1
KB
-r--r--r--
2014-12-27 11:49
overload.t
7.38
KB
-r--r--r--
2014-12-27 11:49
package.t
2.47
KB
-r--r--r--
2014-12-27 11:49
parser.t
5.6
KB
-r--r--r--
2014-12-27 11:49
readline.t
1.35
KB
-r--r--r--
2014-12-27 11:49
select.t
636
B
-r--r--r--
2014-12-27 11:49
sprintf.t
2.6
KB
-r--r--r--
2014-12-27 11:49
stash.t
9.66
KB
-r--r--r--
2014-12-27 11:49
tie.t
1.02
KB
-r--r--r--
2014-12-27 11:49
title.t
217
B
-r--r--r--
2014-12-27 11:49
tr_7jis.t
1.39
KB
-r--r--r--
2014-12-27 11:49
tr_eucjp.t
1.2
KB
-r--r--r--
2014-12-27 11:49
tr_sjis.t
1.21
KB
-r--r--r--
2014-12-27 11:49
tr_utf8.t
1.71
KB
-r--r--r--
2014-12-27 11:49
universal.t
3.57
KB
-r--r--r--
2014-12-27 11:49
upper.t
298
B
-r--r--r--
2014-12-27 11:49
variables.t
7.77
KB
-r--r--r--
2014-12-27 11:49
write.t
2.45
KB
-r--r--r--
2014-12-27 11:49
Save
Rename
#!./perl # Regression tests for attributes.pm and the C< : attrs> syntax. BEGIN { chdir 't' if -d 't'; @INC = '../lib'; require './test.pl'; skip_all_if_miniperl("miniperl can't load attributes"); } use utf8; use open qw( :utf8 :std ); use warnings; use feature 'unicode_strings'; $SIG{__WARN__} = sub { die @_ }; sub eval_ok ($;$) { eval shift; is( $@, '', @_); } fresh_perl_is 'use attributes; print "ok"', 'ok', {}, 'attributes.pm can load without warnings.pm already loaded'; eval 'sub è1 ($) : plùgh ;'; like $@, qr/^Invalid CODE attributes?: ["']?plùgh["']? at/; eval 'sub ɛ2 ($) : plǖgh(0,0) xyzzy ;'; like $@, qr/^Invalid CODE attributes: ["']?plǖgh\(0,0\)["']? /; eval 'my ($x,$y) : plǖgh;'; like $@, qr/^Invalid SCALAR attribute: ["']?plǖgh["']? at/; # bug #16080 eval '{my $x : plǖgh}'; like $@, qr/^Invalid SCALAR attribute: ["']?plǖgh["']? at/; eval '{my ($x,$y) : plǖgh(})}'; like $@, qr/^Invalid SCALAR attribute: ["']?plǖgh\(}\)["']? at/; # More syntax tests from the attributes manpage eval 'my $x : Şʨᚻ(10,ᕘ(7,3)) : 에ㄒ펜ሲ;'; like $@, qr/^Invalid SCALAR attributes: ["']?Şʨᚻ\(10,ᕘ\(7,3\)\) : 에ㄒ펜ሲ["']? at/; eval q/my $x : Ugļᑈ('\(") :받;/; like $@, qr/^Invalid SCALAR attributes: ["']?Ugļᑈ\('\\\("\) : 받["']? at/; eval 'my $x : Şʨᚻ(10,ᕘ();'; like $@, qr/^Unterminated attribute parameter in attribute list at/; eval q/my $x : Ugļᑈ('(');/; like $@, qr/^Unterminated attribute parameter in attribute list at/; sub A::MODIFY_SCALAR_ATTRIBUTES { return } eval 'my A $x : plǖgh;'; like $@, qr/^SCALAR package attribute may clash with future reserved word: ["']?plǖgh["']? at/; eval 'my A $x : plǖgh plover;'; like $@, qr/^SCALAR package attributes may clash with future reserved words: ["']?plǖgh["']? /; no warnings 'reserved'; eval 'my A $x : plǖgh;'; is $@, ''; eval 'package Càt; my Càt @socks;'; like $@, ''; eval 'my Càt %nap;'; like $@, ''; sub X::MODIFY_CODE_ATTRIBUTES { die "$_[0]" } sub X::ᕘ { 1 } *Y::bar = \&X::ᕘ; *Y::bar = \&X::ᕘ; # second time for -w eval 'package Z; sub Y::bar : ᕘ'; like $@, qr/^X at /; # Begin testing attributes that tie { package Ttìè; sub DESTROY {} sub TIESCALAR { my $x = $_[1]; bless \$x, $_[0]; } sub FETCH { ${$_[0]} } sub STORE { ::pass; ${$_[0]} = $_[1]*2; } package Tlòòp; sub MODIFY_SCALAR_ATTRIBUTES { tie ${$_[1]}, 'Ttìè', -1; (); } } eval_ok ' package Tlòòp; for my $i (0..2) { my $x : TìèLòòp = $i; $x != $i*2 and ::is $x, $i*2; } '; # bug #15898 eval 'our ${""} : ᕘ = 1'; like $@, qr/Can't declare scalar dereference in "our"/; eval 'my $$ᕘ : bar = 1'; like $@, qr/Can't declare scalar dereference in "my"/; # this will segfault if it fails sub PVBM () { 'ᕘ' } { my $dummy = index 'ᕘ', PVBM } ok !defined(eval 'attributes::get(\PVBM)'), 'PVBMs don\'t segfault attributes::get'; { # [perl #49472] Attributes + Unknown Error eval ' use strict; sub MODIFY_CODE_ATTRIBUTE{} sub f:Blah {$nosuchvar}; '; my $err = $@; like ($err, qr/Global symbol "\$nosuchvar" requires /, 'perl #49472'); } # Test that code attributes always get applied to the same CV that # we're left with at the end (bug#66970). { package bug66970; our $c; sub MODIFY_CODE_ATTRIBUTES { $c = $_[1]; () } $c=undef; eval 'sub t0 :ᕘ'; main::ok $c == \&{"t0"}; $c=undef; eval 'sub t1 :ᕘ { }'; main::ok $c == \&{"t1"}; $c=undef; eval 'sub t2'; our $t2a = \&{"t2"}; $c=undef; eval 'sub t2 :ᕘ'; main::ok $c == \&{"t2"} && $c == $t2a; $c=undef; eval 'sub t3'; our $t3a = \&{"t3"}; $c=undef; eval 'sub t3 :ᕘ { }'; main::ok $c == \&{"t3"} && $c == $t3a; $c=undef; eval 'sub t4 :ᕘ'; our $t4a = \&{"t4"}; our $t4b = $c; $c=undef; eval 'sub t4 :ᕘ'; main::ok $c == \&{"t4"} && $c == $t4b && $c == $t4a; $c=undef; eval 'sub t5 :ᕘ'; our $t5a = \&{"t5"}; our $t5b = $c; $c=undef; eval 'sub t5 :ᕘ { }'; main::ok $c == \&{"t5"} && $c == $t5b && $c == $t5a; } # [perl #68560] Calling closure prototypes (only accessible via :attr) { package brength; my $proto; sub MODIFY_CODE_ATTRIBUTES { $proto = $_[1]; _: } eval q{ my $x; () = sub :a0 { $x }; }; package main; eval { $proto->() }; # used to crash in pp_entersub like $@, qr/^Closure prototype called/, "Calling closure proto with (no) args"; eval { () = &$proto }; # used to crash in pp_leavesub like $@, qr/^Closure prototype called/, 'Calling closure proto with no @_ that returns a lexical'; } # [perl #68658] Attributes on stately variables { package thwext; sub MODIFY_SCALAR_ATTRIBUTES { () } my $i = 0; my $x_values = ''; eval 'sub ᕘ { use 5.01; state $x :A0 = $i++; $x_values .= $x }'; ᕘ(); ᕘ(); package main; is $x_values, '00', 'state with attributes'; } { package 닌g난ㄬ; sub MODIFY_SCALAR_ATTRIBUTES{} sub MODIFY_ARRAY_ATTRIBUTES{ } sub MODIFY_HASH_ATTRIBUTES{ } my ($cows, @go, %bong) : テa퐅Š = qw[ jibber jabber joo ]; ::is $cows, 'jibber', 'list assignment to scalar with attrs'; ::is "@go", 'jabber joo', 'list assignment to array with attrs'; } done_testing();