Perl: use feature ‘say’;

More self-tutoring about Perl: the tutor mentions another way to enable ‘say’ in Perl.

In my post from Aug 15 I mention the Perl feature say and that, to enable it, a user might key

use v5.10;

below the she-bang line. (Apparently, a version past 5.10 may also suffice.)

I’ve read since that the line

use feature ‘say’;

also enables the use of say.

Source:

perldoc.perl.org

www.sthomas.net

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply