App-CommonPrefixUtils
view release on metacpan or search on metacpan
script/remove-common-prefix view on Meta::CPAN
sub parse_cmdline {
Getopt::Long::Configure("gnu_getopt", "no_ignore_case");
my $res = GetOptions(
'version|v' => sub {
print "strip-common-prefix version ", ($main::VERSION // 'dev'), "\n";
exit 0;
},
'help|h' => sub {
print <<TEXT;
Usage:
strip-common-prefix [OPTIONS]... [INPUT [OUTPUT]]
strip-common-prefix --version, -v
strip-common-prefix --help, -h
Options:
For more details, see the manpage/documentation.
TEXT
exit 0;
},
);
exit 99 if !$res;
script/remove-common-prefix view on Meta::CPAN
=head1 NAME
remove-common-prefix - Strip common prefix from each line of input
=head1 VERSION
This document describes version 0.001 of remove-common-prefix (from Perl distribution App-CommonPrefixUtils), released on 2024-05-16.
=head1 SYNOPSIS
strip-common-prefix [OPTION]... [INPUT]
Sample input:
foobar
foobaz
food
Sample output:
bar
script/strip-common-prefix view on Meta::CPAN
sub parse_cmdline {
Getopt::Long::Configure("gnu_getopt", "no_ignore_case");
my $res = GetOptions(
'version|v' => sub {
print "strip-common-prefix version ", ($main::VERSION // 'dev'), "\n";
exit 0;
},
'help|h' => sub {
print <<TEXT;
Usage:
strip-common-prefix [OPTIONS]... [INPUT [OUTPUT]]
strip-common-prefix --version, -v
strip-common-prefix --help, -h
Options:
For more details, see the manpage/documentation.
TEXT
exit 0;
},
);
exit 99 if !$res;
script/strip-common-prefix view on Meta::CPAN
=head1 NAME
strip-common-prefix - Strip common prefix from each line of input
=head1 VERSION
This document describes version 0.001 of strip-common-prefix (from Perl distribution App-CommonPrefixUtils), released on 2024-05-16.
=head1 SYNOPSIS
strip-common-prefix [OPTION]... [INPUT]
Sample input:
foobar
foobaz
food
Sample output:
bar
( run in 0.614 second using v1.01-cache-2.11-cpan-4e96b696675 )