App-pfswatch
view release on metacpan or search on metacpan
lib/App/pfswatch.pm view on Meta::CPAN
}
else {
exec @cmd or die $!;
}
}
};
}
sub parse_argv {
my $class = shift;
local @ARGV = @_;
my $p = Getopt::Long::Parser->new( config => ['pass_through'] );
$p->getoptions( \my %opts, 'pipe', 'quiet', 'help|h' );
my ( @path, @cmd );
my $exec_re = qr/^-(e|-exec)$/i;
while ( my $arg = shift @ARGV ) {
if ( $arg =~ $exec_re ) {
@cmd = splice @ARGV, 0, scalar @ARGV;
}
( run in 0.553 second using v1.01-cache-2.11-cpan-49f99fa48dc )