blob: 6483eba38f3db6b2d5c34391862b0f012769ab98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!./perl
my $test = 1;
sub ok {
my($ok, $name) = @_;
# You have to do it this way or VMS will get confused.
printf "%s %d%s\n", $ok ? "ok" : "not ok",
$test,
defined $name ? " - $name" : '';
printf "# Failed test at line %d\n", (caller)[2] unless $ok;
$test++;
return $ok;
}
print "1..1\n";
ok(defined [(1)x127,qr//,1]->[127], "qr// should extend the stack properly");
|