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 /
re /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
lexical_debug.pl
353
B
-r--r--r--
2014-12-27 11:48
lexical_debug.t
1.15
KB
-r--r--r--
2014-12-27 11:48
qr.t
241
B
-r--r--r--
2014-12-27 11:48
re.t
2.05
KB
-r--r--r--
2014-12-27 11:48
re_funcs.t
899
B
-r--r--r--
2014-12-27 11:48
re_funcs_u.t
4.1
KB
-r--r--r--
2014-12-27 11:49
reflags.t
4.55
KB
-r--r--r--
2014-12-27 11:49
regop.pl
689
B
-r--r--r--
2014-12-27 11:49
regop.t
8.76
KB
-r--r--r--
2014-12-27 11:49
Save
Rename
#!./perl BEGIN { require Config; if (($Config::Config{'extensions'} !~ /\bre\b/) ){ print "1..0 # Skip -- Perl configured without re module\n"; exit 0; } } use strict; use Test::More tests => 15; require_ok( 're' ); # setcolor $INC{ 'Term/Cap.pm' } = 1; local $ENV{PERL_RE_TC}; re::setcolor(); is( $ENV{PERL_RE_COLORS}, "md\tme\tso\tse\tus\tue", 'setcolor() should provide default colors' ); $ENV{PERL_RE_TC} = 'su,n,ny'; re::setcolor(); is( $ENV{PERL_RE_COLORS}, "su\tn\tny", '... or use $ENV{PERL_RE_COLORS}' ); # bits # get on my $warn; local $SIG{__WARN__} = sub { $warn = shift; }; #eval { re::bits(1) }; #like( $warn, qr/Useless use/, 'bits() should warn with no args' ); delete $ENV{PERL_RE_COLORS}; re::bits(0, 'debug'); is( $ENV{PERL_RE_COLORS}, undef, "... should not set regex colors given 'debug'" ); re::bits(0, 'debugcolor'); isnt( $ENV{PERL_RE_COLORS}, '', "... should set regex colors given 'debugcolor'" ); re::bits(0, 'nosuchsubpragma'); like( $warn, qr/Unknown "re" subpragma/, '... should warn about unknown subpragma' ); ok( re::bits(0, 'taint') & 0x00100000, '... should set taint bits' ); ok( re::bits(0, 'eval') & 0x00200000, '... should set eval bits' ); local $^H; # import re->import('taint', 'eval'); ok( $^H & 0x00100000, 'import should set taint bits in $^H when requested' ); ok( $^H & 0x00200000, 'import should set eval bits in $^H when requested' ); re->unimport('taint'); ok( !( $^H & 0x00100000 ), 'unimport should clear bits in $^H when requested' ); re->unimport('eval'); ok( !( $^H & 0x00200000 ), '... and again' ); my $reg=qr/(foo|bar|baz|blah)/; close STDERR; eval"use re Debug=>'ALL'"; my $ok='foo'=~/$reg/; eval"no re Debug=>'ALL'"; ok( $ok, 'No segv!' ); my $message = "Don't tread on me"; $_ = $message; re->import("/aa"); is($_, $message, "re doesn't clobber \$_"); package Term::Cap; sub Tgetent { bless({}, $_[0]); } sub Tputs { return $_[1]; } package main; { my $w; local $SIG{__WARN__} = sub { warn shift; ++$w }; re->import(); is $w, undef, 'no warning for "use re;" (which is not useless)'; }