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 /
opbasic /
Delete
Unzip
Name
Size
Permission
Date
Action
arith.t
18.11
KB
-r--r--r--
2014-12-27 11:49
cmp.t
8.55
KB
-r--r--r--
2014-12-27 11:49
concat.t
4.21
KB
-r--r--r--
2014-12-27 11:49
magic_phase.t
881
B
-r--r--r--
2014-12-27 11:49
qq.t
1.92
KB
-r--r--r--
2014-12-27 11:49
Save
Rename
#!./perl BEGIN { chdir 't' if -d 't'; @INC = '../lib'; } # This file uses a specially crafted is() function rather than that found in # t/test.pl or Test::More. Hence, we place this file in directory t/opbasic. print q(1..28 ); # This is() function is written to avoid "" my $test = 1; sub is { my($left, $right) = @_; if ($left eq $right) { printf 'ok %d ', $test++; return 1; } foreach ($left, $right) { # Comment out these regexps to map non-printables to ord if the perl under # test is so broken that it is not helping s/([^-+A-Za-z_0-9])/sprintf q{'.chr(%d).'}, ord $1/ge; $_ = sprintf q('%s'), $_; s/^''\.//; s/\.''$//; } printf q(not ok %d - got %s expected %s ), $test++, $left, $right; printf q(# Failed test at line %d ), (caller)[2]; return 0; } is ("\x53", chr 83); is ("\x4EE", chr (78) . 'E'); is ("\x4i", chr (4) . 'i'); # This will warn is ("\xh", chr (0) . 'h'); # This will warn is ("\xx", chr (0) . 'x'); # This will warn is ("\xx9", chr (0) . 'x9'); # This will warn. \x9 is tab in EBCDIC too? is ("\x9_E", chr (9) . '_E'); # This will warn is ("\x{4E}", chr 78); is ("\x{6_9}", chr 105); is ("\x{_6_3}", chr 99); is ("\x{_6B}", chr 107); is ("\x{9__0}", chr 9); # multiple underscores not allowed. is ("\x{77_}", chr 119); # trailing underscore warns. is ("\x{6FQ}z", chr (111) . 'z'); is ("\x{0x4E}", chr 0); is ("\x{x4E}", chr 0); is ("\x{0065}", chr 101); is ("\x{000000000000000000000000000000000000000000000000000000000000000072}", chr 114); is ("\x{0_06_5}", chr 101); is ("\x{1234}", chr 4660); is ("\x{10FFFD}", chr 1114109); is ("\400", chr 0x100); is ("\600", chr 0x180); is ("\777", chr 0x1FF); is ("a\o{120}b", "a" . chr(0x50) . "b"); is ("a\o{400}b", "a" . chr(0x100) . "b"); is ("a\o{1000}b", "a" . chr(0x200) . "b"); # This caused a memory fault no warnings "utf8"; is ("abc", eval qq[qq\x{8000_0000}abc\x{8000_0000}])