App-CommonSuffixUtils

 view release on metacpan or  search on metacpan

script/remove-common-suffix  view on Meta::CPAN

sub parse_cmdline {
    Getopt::Long::Configure("gnu_getopt", "no_ignore_case");
    my $res = GetOptions(
        'version|v'        => sub {
            print "strip-common-suffix version ", ($main::VERSION // 'dev'), "\n";
            exit 0;
        },
        'help|h'           => sub {
            print <<TEXT;
Usage:
  strip-common-suffix [OPTIONS]... [INPUT [OUTPUT]]
  strip-common-suffix --version, -v
  strip-common-suffix --help, -h
Options:

For more details, see the manpage/documentation.
TEXT
            exit 0;
        },
    );
    exit 99 if !$res;

script/remove-common-suffix  view on Meta::CPAN

=head1 NAME

remove-common-suffix - Strip common suffix from each line of input

=head1 VERSION

This document describes version 0.001 of remove-common-suffix (from Perl distribution App-CommonSuffixUtils), released on 2024-05-16.

=head1 SYNOPSIS

 strip-common-suffix [OPTION]... [INPUT]

Sample input:

 1foo
 23foo
 foo
 xxxxfoo

Sample output:

script/strip-common-suffix  view on Meta::CPAN

sub parse_cmdline {
    Getopt::Long::Configure("gnu_getopt", "no_ignore_case");
    my $res = GetOptions(
        'version|v'        => sub {
            print "strip-common-suffix version ", ($main::VERSION // 'dev'), "\n";
            exit 0;
        },
        'help|h'           => sub {
            print <<TEXT;
Usage:
  strip-common-suffix [OPTIONS]... [INPUT [OUTPUT]]
  strip-common-suffix --version, -v
  strip-common-suffix --help, -h
Options:

For more details, see the manpage/documentation.
TEXT
            exit 0;
        },
    );
    exit 99 if !$res;

script/strip-common-suffix  view on Meta::CPAN

=head1 NAME

strip-common-suffix - Strip common suffix from each line of input

=head1 VERSION

This document describes version 0.001 of strip-common-suffix (from Perl distribution App-CommonSuffixUtils), released on 2024-05-16.

=head1 SYNOPSIS

 strip-common-suffix [OPTION]... [INPUT]

Sample input:

 1foo
 23foo
 foo
 xxxxfoo

Sample output:



( run in 0.444 second using v1.01-cache-2.11-cpan-4e96b696675 )