Unicode-Tussle
view release on metacpan or search on metacpan
script/tcgrep view on Meta::CPAN
}
if ($opt{i}) {
@patterns = map {"(?i)$_"} @patterns;
}
if ($opt{p} || $opt{P}) {
@patterns = map {"(?m)$_"} @patterns;
}
$opt{p} && ($/ = '');
$opt{P} && ($/ = eval(qq("$opt{P}"))); # for -P '%%\n'
$opt{w} && (@patterns = map {'\b' . $_ . '\b'} @patterns);
$opt{'x'} && (@patterns = map {"^$_\$"} @patterns);
if (@ARGV) {
$Mult = 1 if ($opt{r} || (@ARGV > 1) || -d $ARGV[0]) && !$opt{h};
}
$opt{1} += $opt{l}; # that's a one and an ell
$opt{H} += $opt{u};
$opt{c} += $opt{C};
$opt{'s'} += $opt{c};
script/ucsort view on Meta::CPAN
if (!@ARGV && -t STDIN) {
warn "$0: reading from stdin, type ^D to end, ^C to kill...\n";
}
if (my $incoding = $Opt{"input-encoding"}) {
# need postfix :: to insist is classname not builtin function
open::->import(IN => $incoding);
}
local $/ = "" if $Opt{paragraph};
return <>;
}
#################################################################
sub load_options() {
Getopt::Long::Configure qw[ bundling auto_version ];
my @options = (
( run in 0.295 second using v1.01-cache-2.11-cpan-49f99fa48dc )