What exactly does ‘use 5.014’ enable?
Please, someone copy&paste here, because i was not able find it in any perldoc. (maybe i’m blind). In the ‘perldoc feature’ are only some things for the 5.10. Or point me to some URL.
thanx.
EDIT:
Please first check, what do you reply. For example: try this:
use 5.008;
$s=1;
say "hello";
You will get error message about the “say”, because perl 5.8 doesn’t know “say”
after, try this:
use 5.014;
$s=1;
say "hello";
you will get error
Global symbol "$s" requires explicit package name
so, the “use 5.014” enabling use strict, and use feature 'say'; – by default.
Besides what raj correctly said about the error messages you’d receive if using
use 5.014with an older version of Perl, you can find a list of features enabled reading the source code offeature. The relevant part is near the top:The strict bit part is buried somewhat deeper in the code for the interpreter itself. If you look into
pp_ctl.cfor tag v5.11.0: