Next refresh should show more results. ( run in 1.273 )
view release on metacpan or search on metacpan
$rv;
}
sub usage
{
my($usage) = do { local(@ARGV,$/)=($0); <> } =~ /^=head\d$HS+SYNOPSIS\s*^(.*?)\s*^=/ms;
my %M = ( 'I' => '*' );
$usage =~ s/^\s*perl\s+\S+/$^X $0/;
$usage =~ s/([A-Z])<([^>]+)>/$M{$1}$2$M{$1}/g;
print <<ENDUSAGE;
view all matches for this distribution
view release on metacpan or search on metacpan
$rv;
}
sub usage
{
my($usage) = do { local(@ARGV,$/)=($0); <> } =~ /^=head\d$HS+SYNOPSIS\s*^(.*?)\s*^=/ms;
my %M = ( 'I' => '*' );
$usage =~ s/^\s*perl\s+\S+/$^X $0/;
$usage =~ s/([A-Z])<([^>]+)>/$M{$1}$2$M{$1}/g;
print <<ENDUSAGE;
view all matches for this distribution
view release on metacpan or search on metacpan
t/03-argv-processing.t view on Meta::CPAN
quiet => [ '--quiet', '-q' ],
remove => 1,
);
for (@tests) {
my ($val, $opts, $new_opts)= @$_;
local @ARGV= split /\s/, $opts;
$cfg->log_level('info');
$cfg->process_argv(%argv_cfg);
is($cfg->log_level_num, $val, "$opts => $new_opts" );
is( join(' ',@ARGV), $new_opts, 'correctly removed' );
}
view all matches for this distribution
view release on metacpan or search on metacpan
t/simplelogger.t view on Meta::CPAN
my $tempfile = File::Temp->new(UNLINK => 1, TEMPLATE => 'stderrXXXXXX');
my $fn = fileno($tempfile);
open(STDERR, ">&$fn") or die $!;
log_debug { 'frew' };
my $out = do { local @ARGV = $tempfile; <> };
is($out, "[debug] frew\n", 'SimpleLogger outputs to STDERR correctly');
}
my $response;
my $l2 = Log::Contextual::SimpleLogger->new({
view all matches for this distribution
view release on metacpan or search on metacpan
foreach my $sample (<sample*.pl>)
{
(my $output = $sample) =~ s/pl$/output/;
local @ARGV = $output;
while (my $case = <>)
{
chomp $case;
next if $case eq '';
view all matches for this distribution
view release on metacpan or search on metacpan
bin/log_tail_mirror.pl view on Meta::CPAN
#_* Main
#
my $usage = "$0 <server> <remote path> <local path>";
my ( $server, $remote_path, $local_path ) = ( @ARGV );
unless ( $local_path ) {
die $usage;
}
# open local file for writing
view all matches for this distribution
view release on metacpan or search on metacpan
$rv;
}
sub usage
{
my($usage) = do { local(@ARGV,$/)=($0); <> } =~ /^=head\d$HS+SYNOPSIS\s*^(.*?)\s*^=/ms;
my %M = ( 'I' => '*' );
$usage =~ s/^\s*perl\s+\S+/$^X $0/;
$usage =~ s/([A-Z])<([^>]+)>/$M{$1}$2$M{$1}/g;
print <<ENDUSAGE;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/MDK/Common/File.pm view on Meta::CPAN
if (-l $file) {
my $targetfile = readlink $file;
$file = $targetfile;
}
if (-s $file) {
local @ARGV = $file;
local $^I = '.bak';
local $_;
while (<>) {
$_ .= "\n" if eof && !/\n/;
&$f($_);
view all matches for this distribution
view release on metacpan or search on metacpan
$rv;
}
sub usage
{
my($usage) = do { local(@ARGV,$/)=($0); <> } =~ /^=head\d$HS+SYNOPSIS\s*^(.*?)\s*^=/ms;
my %M = ( 'I' => '*' );
$usage =~ s/^\s*perl\s+\S+/$^X $0/;
$usage =~ s/([A-Z])<([^>]+)>/$M{$1}$2$M{$1}/g;
print <<ENDUSAGE;
view all matches for this distribution
view release on metacpan or search on metacpan
include/ppport.h view on Meta::CPAN
print " --- hint for $func ---\n", $hint;
}
sub usage
{
my($usage) = do { local(@ARGV,$/)=($0); <> } =~ /^=head\d$HS+SYNOPSIS\s*^(.*?)\s*^=/ms;
my %M = ( 'I' => '*' );
$usage =~ s/^\s*perl\s+\S+/$^X $0/;
$usage =~ s/([A-Z])<([^>]+)>/$M{$1}$2$M{$1}/g;
print <<ENDUSAGE;
view all matches for this distribution
view release on metacpan or search on metacpan
Daemon/Simple.pm view on Meta::CPAN
my $self = shift;
my $client = $self->{client};
my $pl = $self->{playlist};
my %opt;
local @ARGV = @_;
getopts('lf', \%opt);
my $re = shift(@ARGV);
my $attr = defined($opt{f}) ? URL : TITLE;
my $i;
view all matches for this distribution
view release on metacpan or search on metacpan
examples/audio_rename view on Meta::CPAN
}
MP3::Tag->reset_encode_decode_config($locale) if $locale and $opt{L} & 0x08;
# warn "LOCALE=$locale: e=$opt{L}";
$skip = !($opt{L} & 1);
# Reinterpret @ARGV
@ARGV = map my_decode($locale, $_), @ARGV if $opt{L} & 4;
# Reinterpret opts
@opt{keys %opt} = map my_decode_deep($locale, $_), values %opt
if $opt{L} & 2;
$opt{L} = $locale;
# } elsif ($opt{L} eq 'binary') {
view all matches for this distribution
view release on metacpan or search on metacpan
$rv;
}
sub usage
{
my($usage) = do { local(@ARGV,$/)=($0); <> } =~ /^=head\d$HS+SYNOPSIS\s*^(.*?)\s*^=/ms;
my %M = ( 'I' => '*' );
$usage =~ s/^\s*perl\s+\S+/$^X $0/;
$usage =~ s/([A-Z])<([^>]+)>/$M{$1}$2$M{$1}/g;
print <<ENDUSAGE;
view all matches for this distribution
view release on metacpan or search on metacpan
print " --- hint for $func ---\n", $hint;
}
sub usage
{
my($usage) = do { local(@ARGV,$/)=($0); <> } =~ /^=head\d$HS+SYNOPSIS\s*^(.*?)\s*^=/ms;
my %M = ( 'I' => '*' );
$usage =~ s/^\s*perl\s+\S+/$^X $0/;
$usage =~ s/([A-Z])<([^>]+)>/$M{$1}$2$M{$1}/g;
print <<ENDUSAGE;
view all matches for this distribution
view release on metacpan or search on metacpan
$rv || 0;
}
sub usage
{
my($usage) = do { local(@ARGV,$/)=($0); <> } =~ /^=head\d$HS+SYNOPSIS\s*^(.*?)\s*^=/ms;
my %M = ( 'I' => '*' );
$usage =~ s/^\s*perl\s+\S+/$^X $0/;
$usage =~ s/([A-Z])<([^>]+)>/$M{$1}$2$M{$1}/g;
print <<ENDUSAGE;
view all matches for this distribution
view release on metacpan or search on metacpan
use_ok( $class ) or BAIL_OUT( "$class did not compile\n" );
use Time::HiRes qw(tv_interval gettimeofday);
my $data = do {
local @ARGV = qw(plists/com.apple.iTunes.plist);
do { local $/; <> };
};
my $time1 = [ gettimeofday ];
my $plist = Mac::PropertyList::parse_plist( $data );
view all matches for this distribution