Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Which pragmas are activated with a specific perl version?

by haukex (Archbishop)
on Mar 15, 2018 at 13:47 UTC ( [id://1210953]=note: print w/replies, xml ) Need Help??


in reply to Re: Which pragmas are activated with a specific perl version?
in thread Which pragmas are activated with a specific perl version?

And taking the information from "Feature Bundles":

# no "use VERSION" is the same as: use feature qw/array_base/; use 5.010; # is the same as: use feature qw/say state switch array_base/; use 5.012; # is the same as: use strict; use feature qw/say state switch unicode_strings array_base/; use 5.014; # is the same as: use strict; use feature qw/say state switch unicode_strings array_base/; use 5.016; # is the same as: use strict; use feature qw/say state switch unicode_strings unicode_eval evalbytes current_sub fc/; use 5.018; # is the same as: use strict; use feature qw/say state switch unicode_strings unicode_eval evalbytes current_sub fc/; use 5.020; # is the same as: use strict; use feature qw/say state switch unicode_strings unicode_eval evalbytes current_sub fc/; use 5.022; # is the same as: use strict; use feature qw/say state switch unicode_strings unicode_eval evalbytes current_sub fc/; use 5.024; # is the same as: use strict; use feature qw/say state switch unicode_strings unicode_eval evalbytes current_sub fc postderef_qq/; use 5.026; # is the same as: use strict; use feature qw/say state switch unicode_strings unicode_eval evalbytes current_sub fc postderef_qq/;

Note the absence of warnings, as already pointed out by Eily.

Replies are listed 'Best First'.
Re^3: Which pragmas are activated with a specific perl version?
by adhrain (Sexton) on Mar 15, 2018 at 14:14 UTC

    Thanks! This answers my question. But I have a new one :-)

    Where did you get this version of the table?

    My perldoc and the web based documentation have a different table:

    The following feature bundles are available: bundle features included --------- ----------------- :default array_base :5.10 say state switch array_base :5.12 say state switch unicode_strings array_base :5.14 say state switch unicode_strings array_base :5.16 say state switch unicode_strings unicode_eval evalbytes current_sub fc :5.18 say state switch unicode_strings unicode_eval evalbytes current_sub fc ...
      Where did you get this version of the table?

      I got it from the link I posted (http://perldoc.perl.org/feature.html#FEATURE-BUNDLES), which at the moment is the Perl 5.26.1 documentation. The table you showed has the same entries - I assume you have Perl 5.18 installed, which is why your table doesn't go any further.

      If you want to stay absolutely up-to-date, see the %feature_bundle hash (and the corresponding table near the bottom of the file) in lib/feature.pm in the Perl source repository (Update: or regen/feature.pl). According to that, the features for use 5.028; will be qw/say state switch unicode_strings unicode_eval evalbytes current_sub fc postderef_qq bitwise/ (subject to change, of course).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1210953]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-24 22:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found