diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1997-11-22 09:48:02 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1997-11-22 09:48:02 +0000 |
commit | 0da4822f11e97ce202166899552c06d720eb835a (patch) | |
tree | 2a629ad4539739bcf6e0d9a49d8f52cbcc3a3196 /t | |
parent | a80f87c48e630b044cd5371d547b0f38e4476ec0 (diff) | |
download | perl-0da4822f11e97ce202166899552c06d720eb835a.tar.gz |
- shift() inside BEGIN|END|INIT now shifts @ARGV instead of @_
- added a test for the above
- fixed up perly.c.diff and vms/perl_c.vms for above and added the
ansification hunks
p4raw-id: //depot/win32/perl@277
Diffstat (limited to 't')
-rwxr-xr-x | t/op/misc.t | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/t/op/misc.t b/t/op/misc.t index c529830123..326273aff1 100755 --- a/t/op/misc.t +++ b/t/op/misc.t @@ -345,3 +345,14 @@ EXPECT Unmatched right bracket at (re_eval 1) line 1, at end of line syntax error at (re_eval 1) line 1, near ""{"}" Compilation failed in regexp at - line 1. +######## +BEGIN { @ARGV = qw(a b c) } +BEGIN { print "argv <@ARGV>\nbegin <",shift,">\n" } +END { print "end <",shift,">\nargv <@ARGV>\n" } +INIT { print "init <",shift,">\n" } +EXPECT +argv <a b c> +begin <a> +init <b> +end <c> +argv <> |