XP is just a number | |
PerlMonks |
Re: Permanent <<use feature ":5.10";>>by mirod (Canon) |
on Mar 08, 2012 at 18:01 UTC ( [id://958508]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|