perl5i::latest - Use the latest version of perl5i


perl5i documentation Contained in the perl5i distribution.

Index


Code Index:

NAME

Top

perl5i::latest - Use the latest version of perl5i

SYNOPSIS

Top

    use perl5i::latest;

DESCRIPTION

Top

Because perl5i is designed to break compatibility, you must declare which major version you're writing your code with to preserve compatibility. If you want to be more daring, you can use perl5i::latest and it will load the newest major version of perl5i you have installed.

perl5i WILL BREAK COMPATIBILITY, believe it. This is mostly useful for one-off scripts and one-liners and digital thrill seekers.


perl5i documentation Contained in the perl5i distribution.

package perl5i::latest;

use strict;
use perl5i::VERSION; our $VERSION = perl5i::VERSION->VERSION;

my $Latest;
BEGIN { $Latest = perl5i::VERSION->latest; }

use parent ($Latest);
sub import { goto &{$Latest .'::import'} }

1;

__END__