From: Casey West Date: Mon, 28 Apr 2003 16:30:03 +0000 (+0000) Subject: [perl #7592] Clarify what qw() does in scalar context X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=efb1e16277f66a0184224d33bb0713398ba162b2;p=p5sagit%2Fp5-mst-13.2.git [perl #7592] Clarify what qw() does in scalar context Message-Id: <20030428140005.GC62281@geeknest.com> p4raw-id: //depot/perl@19365 --- diff --git a/pod/perlop.pod b/pod/perlop.pod index 94c930f..bfbb048 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -1178,7 +1178,8 @@ equivalent to: split(' ', q/STRING/); -the difference being that it generates a real list at compile time. So +the differences being that it generates a real list at compile time, and +in scalar context it returns the last element in the list. So this expression: qw(foo bar baz)