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 /
File-Glob /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
basic.t
7.9
KB
-r--r--r--
2014-12-27 11:48
case.t
1.04
KB
-r--r--r--
2014-12-27 11:48
global.t
1.73
KB
-r--r--r--
2014-12-27 11:48
rt114984.t
650
B
-r--r--r--
2014-12-27 11:49
taint.t
540
B
-r--r--r--
2014-12-27 11:48
threads.t
1.55
KB
-r--r--r--
2014-12-27 11:48
Save
Rename
#!./perl BEGIN { chdir 't' if -d 't'; @INC = '../lib'; require Config; import Config; if ($Config{'extensions'} !~ /\bFile\/Glob\b/i) { print "1..0\n"; exit 0; } } use Test::More tests => 11; BEGIN { *CORE::GLOBAL::glob = sub { "Just another Perl hacker," }; } BEGIN { if ("Just another Perl hacker," ne (<*>)[0]) { die <<EOMessage; Your version of perl ($]) doesn't seem to allow extensions to override the core glob operator. EOMessage } } BEGIN { use_ok('File::Glob', ':globally'); } $_ = "op/*.t"; my @r = glob; is($_, "op/*.t"); cmp_ok(scalar @r, '>=', 3); @r = <*/*.t>; # at least t/global.t t/basic.t, t/taint.t cmp_ok(scalar @r, '>=', 3, 'check if <*/*> works'); my $r = scalar @r; @r = (); while (defined($_ = <*/*.t>)) { #print "# $_\n"; push @r, $_; } is(scalar @r, $r, 'check if scalar context works'); @r = (); for (<*/*.t>) { #print "# $_\n"; push @r, $_; } is(scalar @r, $r, 'check if list context works'); @r = (); while (<*/*.t>) { #print "# $_\n"; push @r, $_; } is(scalar @r, $r, 'implicit assign to $_ in while()'); my @s = (); while (glob('*/*.t')) { #print "# $_\n"; push @s, $_; } is("@r", "@s", 'explicit glob() gets assign magic too'); package Foo; use File::Glob ':globally'; @s = (); while (glob('*/*.t')) { #print "# $_\n"; push @s, $_; } main::is("@r", "@s", 'in a different package'); # test if different glob ops maintain independent contexts @s = (); my $i = 0; while (<*/*.t>) { #print "# $_ <"; push @s, $_; while (<bas*/*.t>) { #print " $_"; $i++; } #print " >\n"; } main::is("@r", "@s", 'different glob ops maintain independent contexts'); main::isnt($i, 0, 'different glob ops maintain independent contexts');