sanity

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


       # These three statements do the same thing as...
       use Modern::Perl;
       use sanity 'Modern::Perl';
       use sanity qw(strict warnings mro/dfs feature IO::File IO::Handle);
    
       # ...these statements
       use strict;
       use warnings;
       use mro 'dfs';
       use feature ':all';
       use IO::File;
       use IO::Handle;

    Basically, it does the same thing as the meta pragma Modern::Perl,
    except you actually don't need that module for it to work. While there
    is some magic to make sure, say, feature gets loaded with various
    versions of Perl, it typically just works using a standard import call.
    The strict and warnings flags are combined aliases that enable all of
    the warnings that they would do via a standard call.

README.html  view on Meta::CPAN


<pre>   # These three statements do the same thing as...
   use Modern::Perl;
   use sanity &#39;Modern::Perl&#39;;
   use sanity qw(strict warnings mro/dfs feature IO::File IO::Handle);

   # ...these statements
   use strict;
   use warnings;
   use mro &#39;dfs&#39;;
   use feature &#39;:all&#39;;
   use IO::File;
   use IO::Handle;</pre>

<p>Basically, it does the same thing as the meta pragma <a href="http://search.cpan.org/perldoc?Modern%3A%3APerl" class="podlinkpod"
>Modern::Perl</a>, except you actually don&#39;t need that module for it to work. While there is some magic to make sure, say, <code>feature</code> gets loaded with various versions of Perl, it typically just works using a standard <code>import</code...

<h3><a class='u'
name="Negating_flags/aliases"
>Negating flags/aliases</a></h3>

lib/sanity.pm  view on Meta::CPAN


   # These three statements do the same thing as...
   use Modern::Perl;
   use sanity 'Modern::Perl';
   use sanity qw(strict warnings mro/dfs feature IO::File IO::Handle);

   # ...these statements
   use strict;
   use warnings;
   use mro 'dfs';
   use feature ':all';
   use IO::File;
   use IO::Handle;

Basically, it does the same thing as the meta pragma L<Modern::Perl>, except
you actually don't need that module for it to work.  While there is some magic
to make sure, say, C<feature> gets loaded with various versions of Perl, it typically
just works using a standard C<import> call.  The C<strict> and C<warnings> flags
are combined aliases that enable all of the warnings that they would do via a standard
call.



( run in 0.302 second using v1.01-cache-2.11-cpan-cba739cd03b )