Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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?
[shmem]: holli: all of our machinery is more perfect in its realm than any human being in theirs (Günther Anders), which doesn't mean not having fun, albeit dangerous sometimes.
[ww]: That's a big "if", holli.
[holli]: well the google car drove 5 times as far as the average human without an accident didnt it?
[ww]: Less than confident that ai+hardware is up (yet) to randomness and counterintuitive behavior on streets of NY

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (16)
As of 2017-11-21 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (301 votes). Check out past polls.

    Notices?