Perlmazing

 view release on metacpan or  search on metacpan

lib/Perlmazing/Feature.pm  view on Meta::CPAN

package Perlmazing::Feature;
use strict;
use warnings;
use version;
our $VERSION = '1.2812';
our @ISA = qw(feature);
our $MAX_VERSION = '5.028000';

sub import {
    my $self = shift;
    my $version = $];
    $MAX_VERSION = $] if $MAX_VERSION > $];
    $version = $MAX_VERSION if $version > $MAX_VERSION;
    strict->import;
    warnings->import;
    eval {
        require feature;
        $Perlmazing::Feature::{unknown_feature_bundle} = sub {} unless defined $Perlmazing::Feature::{unknown_feature_bundle};
        $self->SUPER::import(':'.substr version->new($version)->normal, 1);
    };
}

1;

__END__

=head1 NAME

Perlmazing::Feature - Use strict and warnigns and enable all modern features from your Perl version in a single call. Currently, the maximum version features we
enable here is 5.028, as some of the later versions of Perl have features that can cause unexpected compatibility problems. You can change the value of
$Perlmazing::Feature::VERSION to $] or to any other limit.


=head1 SYNOPSIS

This aims to be the equivalent of:

  use strict;
  use warnings;
  use $]; # your Perl version - this doesn't work as written, by the way.
  
Instead of that, all you have to do is:

  use Perlmazing::Feature;
  
And, if you want the same thing for any module or scrit calling your module, then you can simply do this:

  use Perlmazing::Feature
  
  sub import {
    Perlmazing::Feature->import;
  }


=head1 AUTHOR

Francisco Zarabozo, C<< <zarabozo at cpan.org> >>


=head1 BUGS

Please report any bugs or feature requests to C<bug-perlmazing at rt.cpan.org>, or through
the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Perlmazing>.  I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.


=head1 SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Perlmazing::Engine


You can also look for information at:



( run in 3.304 seconds using v1.01-cache-2.11-cpan-b16cb0d3907 )