Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Perl 5.10 given/when tricks and caveats

by pjf (Curate)
on Sep 08, 2008 at 07:56 UTC ( #709724=note: print w/ replies, xml ) Need Help??

in reply to Perl 5.10 given/when tricks and caveats

$foo contains an x $foo contains neither an x nor a y

... which makes very little sense.

That particular piece of documentation in perlsyn is wrong, and is corrected by patch 33488 which will be included in Perl 5.10.1.

Comment on Re: Perl 5.10 given/when tricks and caveats
Download Code
Replies are listed 'Best First'.
Re^2: Perl 5.10 given/when tricks and caveats
by mr_mischief (Monsignor) on Sep 08, 2008 at 11:26 UTC
    Thanks for submitting that to the list and for pointing it out here.

    The continue still means that the default cannot be used to say that there is no 'x'. This possible in C and most other languages with 'fall through' semantics for switch statements. Perhaps the 'fall through' portion needs to be clarified rather than just tweaking the example code.

    Clearing up the misleading code sample is one thing, but actually making it clear why the default case cannot say anything at all about the case that is continued is another.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://709724]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2015-11-30 02:00 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (756 votes), past polls