Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: switch statement

by tobyink (Abbot)
on Sep 20, 2013 at 07:39 UTC ( #1054975=note: print w/ replies, xml ) Need Help??


in reply to Re: switch statement
in thread switch statement

Yes, Switch is still on CPAN, but it's completely broken on recent versions of Perl. It was broken by the change in precedence for prototyped monadic functions without parentheses in Perl 5.14.

There are patches to fix it on RT, but for whatever reason (perhaps to discourage people from using Switch), the current maintainer hasn't released a fix.

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name


Comment on Re^2: switch statement

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-07-29 03:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (211 votes), past polls