[ABE.pm] perl 5.12! - the little things

Walt Mankowski waltman at pobox.com
Tue May 4 08:00:42 PDT 2010


On Tue, May 04, 2010 at 10:45:39AM -0400, Ricardo Signes wrote:
> First off, you should be more likely, now, to use strict.  Why?  Because this:
> 
>   use 5.12.0;
> 
> Means "die unless I'm on perl 5.12.0 or later" just like it always has, and
> "turn on all incompat language features introduced in 5.12" just like it meant
> in 5.10, but now it also means "and turn on strict."
> 
> Since you'll be writing "use 5.12.0" anyway to get things like "say" and
> Unicode fixes, now you get strictures without any stupid boilerplate.

In 5.10 I thought you had to say

  use feature ':5.10';

to get all the shiny new 5.10 features.  That syntax is just odd
enough that I can never remember it.  Could I have been saying

  use 5.10.0;

all along?

Walt


More information about the ABE-pm mailing list