summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-12-04 22:48:51 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-12-04 22:48:51 +0000
commita651a37dec6d3a9749ac62309467d43599db4547 (patch)
tree78696eed2cfa3b34739b4e84ac2128ec01d73d46 /t
parentabdc5761ee5f136ed19d1012429c3fdf2e3671c5 (diff)
downloadperl-a651a37dec6d3a9749ac62309467d43599db4547.tar.gz
s/block/loop block/ in diagnostics about next, last, redo
p4raw-id: //depot/perl@4646
Diffstat (limited to 't')
-rwxr-xr-xt/op/runlevel.t8
-rw-r--r--t/pragma/warn/pp_ctl2
2 files changed, 5 insertions, 5 deletions
diff --git a/t/op/runlevel.t b/t/op/runlevel.t
index 08ad0a326a..1d923cf1b5 100755
--- a/t/op/runlevel.t
+++ b/t/op/runlevel.t
@@ -57,7 +57,7 @@ __END__
@a = sort { last ; } @a;
}
EXPECT
-Can't "last" outside a block at - line 3.
+Can't "last" outside a loop block at - line 3.
########
package TEST;
@@ -174,7 +174,7 @@ exit;
bar:
print "bar reached\n";
EXPECT
-Can't "goto" outside a block at - line 2.
+Can't "goto" out of a pseudo block at - line 2.
########
sub sortfn {
(split(/./, 'x'x10000))[0];
@@ -227,7 +227,7 @@ tie $bar, TEST;
}
print "OK\n";
EXPECT
-Can't "next" outside a block at - line 8.
+Can't "next" outside a loop block at - line 8.
########
package TEST;
@@ -285,7 +285,7 @@ package main;
tie $bar, TEST;
}
EXPECT
-Can't "next" outside a block at - line 4.
+Can't "next" outside a loop block at - line 4.
########
@a = (1, 2, 3);
foo:
diff --git a/t/pragma/warn/pp_ctl b/t/pragma/warn/pp_ctl
index 70e6d60e8d..f61da1a8e1 100644
--- a/t/pragma/warn/pp_ctl
+++ b/t/pragma/warn/pp_ctl
@@ -126,7 +126,7 @@ no warnings 'unsafe' ;
@b = sort { last } @a ;
EXPECT
Exiting pseudo-block via last at - line 4.
-Can't "last" outside a block at - line 4.
+Can't "last" outside a loop block at - line 4.
########
# pp_ctl.c
use warnings 'unsafe' ;