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 reply to Re: Permanent <<use feature ":5.10";>>
by mirod
in thread Permanent <<use feature ":5.10";>>
by juliosergio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |