| 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 | 0 | ▶ | my $class = $_[0]; |
|
Subroutine
import: not called CC=1 SCAR=6.9
| |||
| 10 | |||
| 11 | # Remove the name from the import list before passing it along to perl5i. | ||
| 12 | 0 | my $name = splice(@_, 1, 1); | |
| 13 | |||
| 14 | # Make the program identify as perl5i | ||
| 15 | 0 | $^X = $name; | |
| 16 | |||
| 17 | 0 | goto &perl5i::latest::import; | |
| 18 | } | ||
| 19 | |||
| 20 | 1; | ||