Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Permanent <<use feature ":5.10";>>

by ForgotPasswordAgain (Deacon)
on Mar 09, 2012 at 00:22 UTC ( #958567=note: print w/ replies, xml ) Need Help??


in reply to Permanent <<use feature ":5.10";>>

Probably won't be a popular comment, but you asked for any comments. Mine: don't use 'say' (or 'switch'). There, I sayed it. (How to justify it... Time saved? You spent some amount of time puzzling over it, then posted to perlmonks asking how to do it. A lot of time there. Or maybe it's clearer? 'say', a new feature, works now because....somehow it's been enabled. Well, if you set some environment variable or whatever, which won't work elsewhere. Seems not really so clear. Easier to wait a few years before using new syntax of dubious value, IMHO. Just because UNIVERSAL::can($you, 'do_something') doesn't mean UNIVERSAL::should($you, 'do_something') :))


Comment on Re: Permanent <<use feature ":5.10";>>
Replies are listed 'Best First'.
Re^2: Permanent <<use feature ":5.10";>>
by mirod (Canon) on Mar 09, 2012 at 06:51 UTC

    Although I don't agree with you, 5.10 has been out for long enough to be pretty much everywhere, in this case it's fairly easy to emulate say using -l:

    ls -l | perl -l -ane 'print "@F5..7"'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2015-07-31 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (280 votes), past polls