develooper Front page | perl.perl5.porters | Postings from April 2003

[PATCH] [perl #7592] Clarify what qw() does in scalar context

Thread Next
From:
Casey West
Date:
April 28, 2003 06:56
Subject:
[PATCH] [perl #7592] Clarify what qw() does in scalar context
Message ID:
20030428140005.GC62281@geeknest.com
http://rt.perl.org/rt2/Ticket/Display.html?id=7592

Looking over the messages in this thread, I decided that the following
patch was necessary to close this bug.

  Casey West

-- 
Shooting yourself in the foot with AMIGA-DOS
The gun works pretty well, except that few people use one and it's
impossible to find bullets.

--- perl-current.orig/pod/perlop.pod    Mon Mar 17 20:40:36 2003
+++ perl-current/pod/perlop.pod Mon Apr 28 09:52:32 2003
@@ -1178,7 +1178,8 @@
 
     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)

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About