summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authordavid nicol <whatever@davidnicol.com>2003-09-08 18:39:32 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2003-09-09 07:54:52 +0000
commitb3c0f1bde204be7b0c1795e8d30824df46a47ce0 (patch)
treeb318ca902d364f4b389cbebd91bea0c681f20132 /t
parent3dd03f9f2bff1ada569672f945edbef2c9fdf4b8 (diff)
downloadperl-b3c0f1bde204be7b0c1795e8d30824df46a47ce0.tar.gz
Re: [PATCH] honoring void context for map(), return from sub end test
Message-Id: <1063082372.1375.126.camel@plaza.davidnicol.com> (a testcase) p4raw-id: //depot/perl@21131
Diffstat (limited to 't')
-rwxr-xr-xt/op/grep.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/op/grep.t b/t/op/grep.t
index 6e608132fc..5f4e7a6173 100755
--- a/t/op/grep.t
+++ b/t/op/grep.t
@@ -135,3 +135,11 @@ sub ok {
$test++;
}
+{
+ sub add_an_x(@){
+ map {"${_}x"} @_;
+ };
+ ok join("-",add_an_x(1,2,3,4)), "1x-2x-3x-4x";
+}
+
+