Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2016-02-08 18:00 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (280 votes), past polls