| 1 | package perl5i::cmd; | ||
| 2 | |||
| 3 | # This is a shim for the perl5i command line utility to use. | ||
| 4 | |||
| 5 | use strict; | ||
| 6 | use parent 'perl5i::latest'; | ||
| 7 | |||
| 8 | sub import { | ||
| 9 | my $class = $_[0]; | ||
| 10 | |||
| 11 | # Remove the name from the import list before passing it along to perl5i. | ||
| 12 | my $name = splice(@_, 1, 1); | ||
| 13 | |||
| 14 | # Make the program identify as perl5i | ||
| 15 | $^X = $name; | ||
| 16 | |||
| 17 | goto &perl5i::latest::import; | ||
| 18 | } | ||
| 19 | |||
| 20 | 1; |