Synopsis
use sane;
# is the same as:
use strict;
use warnings;
use utf8;
use feature (sprintf(":%vd", $^V));
Description
use strict; use warnings; use utf8; use feature (sprintf(":%vd", $^V));
is too long for perl mongers!
use sane;
# is the same as:
use strict;
use warnings;
use utf8;
use feature (sprintf(":%vd", $^V));
use strict; use warnings; use utf8; use feature (sprintf(":%vd", $^V));
is too long for perl mongers!
Comments
You can disable specific pragmas like `no strict 'refs';`
Did you read the code of common::sense and Modern::Perl?
You will find that using common::sense is too difficult unless you don't have common sense.
Modern::Perl doesn't import utf8 pragma and can't enable the 'unicode_strings' feature. (cf. perldoc of feature pragma)
s/difficult unless you/difficult if you/;
@tagg
Yay!
@mlawren
Thank you. I've just pushed fixed Makefile.PL on github. And I'll release new tarball tomorrow.
perldelta says "The feature pragma is also implicitly loaded when you require a minimal perl version (with the use VERSION construct) greater than, or equal to, 5.9.5." (http://perldoc.perl.org/perl5100delta.html#The-feature-pragma)
So I had to write `BEGIN { require 5.010 }` into makefile.pl (for minimal stable version)
Please sign up to post a review.