| 1 | package perl5i; | ||
| 2 | |||
| 3 | ###################################### | ||
| 4 | # The real code is in perl5i::2 # | ||
| 5 | # Please patch that # | ||
| 6 | ###################################### | ||
| 7 | |||
| 8 | use strict; | ||
| 9 | use parent 'perl5i::latest'; | ||
| 10 | |||
| 11 | use perl5i::VERSION; our $VERSION = perl5i::VERSION->VERSION; | ||
| 12 | |||
| 13 | my $Latest = perl5i::VERSION->latest; | ||
| 14 | |||
| 15 | sub import { | ||
| 16 | if ($0 eq '-e') { | ||
| 17 | goto &perl5i::latest::import; | ||
| 18 | } | ||
| 19 | else { | ||
| 20 | require Carp::Fix::1_25; | ||
| 21 | Carp::Fix::1_25::croak(<<END); | ||
| 22 | perl5i will break compatibility in the future, you can't just "use perl5i". | ||
| 23 | |||
| 24 | Instead, "use $Latest" which will guarantee compatibility with all | ||
| 25 | features supplied in that major version. | ||
| 26 | |||
| 27 | Type "perldoc perl5i" for details in the section "Using perl5i". | ||
| 28 | END | ||
| 29 | } | ||
| 30 | } | ||
| 31 | |||
| 32 | 1; | ||
| 33 | |||
| 34 | __END__ |