Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
There's more than one way to do things
 
PerlMonks  

Re: Is a good or bad idead to "use feature 'switch'"?

by tobyink (Abbot)
on Sep 03, 2013 at 14:56 UTC ( #1052122=note: print w/ replies, xml ) Need Help??


in reply to Is a good or bad idead to "use feature 'switch'"?

Personally I've been moving from smartmatch to match::simple, which provides a like-smartmatch-but-sane match() function.

I'm also working on a counterpart switch statement, but that's likely to require Perl 5.14+. (Update: Switcheroo.)

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


Comment on Re: Is a good or bad idead to "use feature 'switch'"?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2014-04-19 19:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (483 votes), past polls