Argv
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
$r_argv = $cfg->{ARGV};
$prefix = $cfg->{PREFIX};
}
require Getopt::Long;
local $Getopt::Long::passthrough = 1;
local $Getopt::Long::genprefix = "($prefix)";
my @flags = map {"$_=i"} ((map lc, keys %Argv::Argv), @_);
my %opt;
if (ref $self) {
if ($r_argv) {
local @ARGV = @$r_argv;
GetOptions(\%opt, @flags);
@$r_argv = @ARGV;
} else {
local @ARGV = $self->args;
if (@ARGV) {
GetOptions(\%opt, @flags);
$self->args(@ARGV);
}
}
} elsif ($r_argv) {
local @ARGV = @$r_argv;
GetOptions(\%opt, @flags);
@$r_argv = @ARGV;
} elsif (@ARGV) {
GetOptions(\%opt, @flags);
}
for my $method (keys %opt) {
$self->$method($opt{$method});
}
return $self;
}
view all matches for this distributionview release on metacpan - search on metacpan
( run in 4.155 seconds using v1.00-cache-2.02-grep-82fe00e-cpan-f5108d614456 )