develooper Front page | perl.perl5.porters | Postings from May 2012

[perl #113064] Add for()/when() syntax in official Perl docs

Thread Previous
Perl @ ResonatorSoft . org
May 23, 2012 15:51
[perl #113064] Add for()/when() syntax in official Perl docs
Message ID:
# New Ticket Created by 
# Please include the string:  [perl #113064]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This is a bug report for perl from,
generated with the help of perlbug 1.39 running under perl 5.10.1.

>From IRC:

Original topic:

Should we put this into the official Perl docs?  Otherwise, I
imagine the lifecycle of a programmer's use of given/when will be

1. "Hey, this is great!  Finally, a switch/case type syntax."
2. "WTF?  My any { $_ stuff } doesn't work as expected."
3. "Wait, this is SUPPOSED to work like this?"
4. "Okay, I'm swearing off given/when."
5. "Oh wait, so you can actually still use it without all of the
    $_ problems?  Why isn't this in the Perl docs to begin with?"

With various programmers in various states of 1 thru 5.

[Please do not change anything below this line]
Site configuration information for perl 5.10.1:

Configured by Debian Project at Thu Jun 30 19:24:11 UTC 2011.

Summary of my perl5 (revision 5 version 10 subversion 1) configuration:


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About