uni::perl - all modern features + unicode support in one pragma
There is most commonly used pragmas, such as strict, feature, warnings, utf8, open, mro. Also almost every modern program uses Encode and Carp
use uni::perl; # is the same as use strict; use feature qw(say state switch); no warnings; use warnings qw(FATAL closed threads internal debugging pack substr malloc unopened portable prototype inplace io pipe unpack regexp deprecated exiting glob digit printf utf8 layer reserved parenthesis taint closure semicolon); no warnings qw(exec newline); use utf8; use open (:utf8 :std); use mro 'c3'; use Carp qw(carp croak confess); # With ':dumper' you got dumper() function, that similar to Data::Dumper::Dumper() use uni::perl ':dumper'; # With ':xd' you got xd() function from Devel::Hexdump (if installed) use uni::perl ':xd';
Mons Anderson, <mons at cpan.org>
<mons at cpan.org>
Thanks to Marc Lehmann for useful hints, found in common::sense
Copyright 2009-2012 Mons Anderson
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install uni::perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm uni::perl
CPAN shell
perl -MCPAN -e shell install uni::perl
For more information on module installation, please visit the detailed CPAN module installation guide.