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 /
ext /
B /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
OptreeCheck.pm
31.93
KB
-r--r--r--
2014-12-27 11:49
b.t
13.51
KB
-r--r--r--
2014-12-27 11:49
concise-xs.t
11.9
KB
-r--r--r--
2014-12-27 11:49
concise.t
13.9
KB
-r--r--r--
2014-12-27 11:49
f_map
707
B
-r--r--r--
2014-12-27 11:48
f_map.t
14.32
KB
-r--r--r--
2014-12-27 11:49
f_sort
2.43
KB
-r--r--r--
2014-12-27 11:48
f_sort.t
25.32
KB
-r--r--r--
2014-12-27 11:49
o.t
2
KB
-r--r--r--
2014-12-27 11:48
optree_check.t
6.67
KB
-r--r--r--
2014-12-27 11:49
optree_concise.t
14.5
KB
-r--r--r--
2014-12-27 11:49
optree_constants.t
15.5
KB
-r--r--r--
2014-12-27 11:48
optree_misc.t
17.38
KB
-r--r--r--
2014-12-27 11:49
optree_samples.t
22.36
KB
-r--r--r--
2014-12-27 11:49
optree_sort.t
8.05
KB
-r--r--r--
2014-12-27 11:49
optree_specials.t
14.43
KB
-r--r--r--
2014-12-27 11:49
optree_varinit.t
12.02
KB
-r--r--r--
2014-12-27 11:49
pragma.t
2.77
KB
-r--r--r--
2014-12-27 11:48
showlex.t
2.79
KB
-r--r--r--
2014-12-27 11:49
terse.t
2.63
KB
-r--r--r--
2014-12-27 11:48
walkoptree.t
1.98
KB
-r--r--r--
2014-12-27 11:48
xref.t
2.75
KB
-r--r--r--
2014-12-27 11:48
Save
Rename
#!./perl BEGIN { unshift @INC, 't'; require Config; if (($Config::Config{'extensions'} !~ /\bB\b/) ){ print "1..0 # Skip -- Perl configured without B module\n"; exit 0; } require 'test.pl'; } $| = 1; use warnings; use strict; use Config; use B::Showlex (); plan tests => 15; my $verbose = @ARGV; # set if ANY ARGS my $a; my $Is_VMS = $^O eq 'VMS'; my $path = join " ", map { qq["-I$_"] } @INC; $path = '"-I../lib" "-Iperl_root:[lib]"' if $Is_VMS; # gets too long otherwise my $is_thread = $Config{use5005threads} && $Config{use5005threads} eq 'define'; if ($is_thread) { ok "# use5005threads: test skipped\n"; } else { $a = `$^X $path "-MO=Showlex" -e "my \@one" 2>&1`; like ($a, qr/sv_undef.*PVNV.*\@one.*Nullsv.*AV/s, "canonical usage works"); } # v1.01 tests my ($na,$nb,$nc); # holds regex-strs my ($out, $newlex); # output, option-flag sub padrep { my ($varname,$newlex) = @_; return ($newlex) ? 'PVNV \(0x[0-9a-fA-F]+\) "\\'.$varname.'" = ' : "PVNV \\\(0x[0-9a-fA-F]+\\\) \\$varname\n"; } for $newlex ('', '-newlex') { $out = runperl ( switches => ["-MO=Showlex,$newlex"], prog => 'my ($a,$b)', stderr => 1 ); $na = padrep('$a',$newlex); $nb = padrep('$b',$newlex); like ($out, qr/1: $na/ms, 'found $a in "my ($a,$b)"'); like ($out, qr/2: $nb/ms, 'found $b in "my ($a,$b)"'); print $out if $verbose; SKIP: { skip "no perlio in this build", 5 unless $Config::Config{useperlio}; our $buf = 'arb startval'; my $ak = B::Showlex::walk_output (\$buf); my $walker = B::Showlex::compile( $newlex, sub{my($foo,$bar)} ); $walker->(); $na = padrep('$foo',$newlex); $nb = padrep('$bar',$newlex); like ($buf, qr/1: $na/ms, 'found $foo in "sub { my ($foo,$bar) }"'); like ($buf, qr/2: $nb/ms, 'found $bar in "sub { my ($foo,$bar) }"'); print $buf if $verbose; $ak = B::Showlex::walk_output (\$buf); my $src = 'sub { my ($scalar,@arr,%hash) }'; my $sub = eval $src; $walker = B::Showlex::compile($sub); $walker->(); $na = padrep('$scalar',$newlex); $nb = padrep('@arr',$newlex); $nc = padrep('%hash',$newlex); like ($buf, qr/1: $na/ms, 'found $scalar in "'. $src .'"'); like ($buf, qr/2: $nb/ms, 'found @arr in "'. $src .'"'); like ($buf, qr/3: $nc/ms, 'found %hash in "'. $src .'"'); print $buf if $verbose; # fibonacci function under test my $asub = sub { my ($self,%props)=@_; my $total; { # inner block vars my (@fib)=(1,2); for (my $i=2; $i<10; $i++) { $fib[$i] = $fib[$i-2] + $fib[$i-1]; } for my $i(0..10) { $total += $i; } } }; $walker = B::Showlex::compile($asub, $newlex, -nosp); $walker->(); print $buf if $verbose; $walker = B::Concise::compile($asub, '-exec'); $walker->(); } }