Modern::Perl - enable all of the features of Modern Perl with one command


Modern-Perl documentation Contained in the Modern-Perl distribution.

Index


Code Index:

NAME

Top

Modern::Perl - enable all of the features of Modern Perl with one command

VERSION

Top

Version 1.03

SYNOPSIS

Top

Modern Perl programs use several modules to enable additional features of Perl and of the CPAN. Instead of copying and pasting all of these use lines, instead write only one:

    use Modern::Perl;

For now, this only enables the strict and warnings pragmas, as well as all of the features available in Perl 5.10. It also enables C3 method resolution order; see perldoc mro for an explanation. In the future, it will include additional CPAN modules which have proven useful and stable.

See http://www.modernperlbooks.com/mt/2009/01/toward-a-modernperl.html for more information, and http://www.modernperlbooks.com/ for further discussion of Modern Perl and its implications.

AUTHOR

Top

chromatic, <chromatic at wgz.org>

BUGS

Top

None reported.

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

SUPPORT

Top

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

    perldoc Modern::Perl

You can also look for information at:

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Modern-Perl

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Modern-Perl

* CPAN Ratings

http://cpanratings.perl.org/d/Modern-Perl

* Search CPAN

http://search.cpan.org/dist/Modern-Perl/

ACKNOWLEDGEMENTS

Top

Damian Conway (inspiration from Toolkit), Florian Ragwitz (B::Hooks::Parser, so I didn't have to write it myself), chocolateboy (for suggesting that I don't even need B::Hooks::Parser, at least for now), Damien Learns Perl, David Moreno, and Evan Carroll for reporting bugs and requesting features.

COPYRIGHT & LICENSE

Top


Modern-Perl documentation Contained in the Modern-Perl distribution.
package Modern::Perl;

our $VERSION = '1.03';

use 5.010_000;

use strict;
use warnings;

use mro     ();
use feature ();

sub import {
    warnings->import();
    strict->import();
    feature->import( ':5.10' );
    mro::set_mro( scalar caller(), 'c3' );
}

1; # End of Modern::Perl