juliosergio has asked for the wisdom of the Perl Monks concerning the following question:
I have learnt that in order to use featrures like the statement "say" or the "switch" style programming structure, I have to initiate all my Perl programs with the following declaration:
use feature ":5.10";
Is there some sort of instructing Perl to take that as a default. I mean, if I want, for instance, to use those features from the command line, say, to use
$ ls -l | perl -ane 'say "@F[5..7]"'
instead of the more verbose
$ ls -l | perl -ane 'print "@F[5..7]\n"'
Do you have any comments on this?
Thanks!
--Sergio.
|
---|
Back to
Seekers of Perl Wisdom