Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove the program name from the import list before passing it along …

…to perl5i.

Otherwise when perl5i runs in command mode it will be like
    use perl5i::2 "path/to/perl5i";
which will trip on the upcoming feature skipping logic.
  • Loading branch information...
commit 8480bb6392107389020338331c0a30a511d7a482 1 parent 9e30d2f
@schwern schwern authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/perl5i/cmd.pm
View
5 lib/perl5i/cmd.pm
@@ -6,7 +6,10 @@ use strict;
use parent 'perl5i::latest';
sub import {
- my($class, $name) = @_;
+ my $class = $_[0];
+
+ # Remove the name from the import list before passing it along to perl5i.
+ my $name = splice(@_, 1, 1);
# Make the program identify as perl5i
$^X = $name;
Please sign in to comment.
Something went wrong with that request. Please try again.