Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Smart matching is experimental/depreciated in 5.18 - recommendations?

by sundialsvc4 (Abbot)
on Jun 18, 2013 at 17:52 UTC ( #1039614=note: print w/ replies, xml ) Need Help??


in reply to Smart matching is experimental/depreciated in 5.18 - recommendations?

What I would do, frankly, is to replace that code with something else, and not use that “sugary” feature again.   Probably, I would simply use a if..elsif..else chain.   Another technique is to set up a hash-table containing code references to handler subroutines, if you really needed to.   I have shunned the use of the feature because it really does not add semantic meaning to the language, and now, to hear that it is “subject to big changes or maybe even going away,” I would feel justified in that cautious decision.   (Gee, that didn’t last long.)   Long-term maintainable code should be averse to the blowing wind of passing fancies.


Comment on Re: Smart matching is experimental/depreciated in 5.18 - recommendations?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-09-21 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls