Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by mirod (Canon)
on Mar 08, 2012 at 18:01 UTC ( #958508=note: print w/ replies, xml ) Need Help??


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

Use -E instead of -e:

ls -l | perl -anE 'say "@F[5..7]"'

From man perlrun:

-E commandline
            behaves just like -e, except that it implicitly enables all optional features (in the main compilation unit). See feature.


Comment on Re: Permanent <<use feature ":5.10";>>
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (17)
As of 2015-07-01 17:48 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 (15 votes), past polls