<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl

# Copyright 2012-2022, Alexander Shibakov
# This file is part of SPLinT
#
# SPLinT is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# SPLinT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with SPLinT.  If not, see &lt;http://www.gnu.org/licenses/&gt;.

use Getopt::Long;
use Pod::Usage;

my $man = 0;
my $help = 0;
my $alpha_list = 0;
my $alpha_length = 1;

#Getopt::Long::Configure ("bundling"); # to allow -abc to set a, b, and c

GetOptions ("help|?" =&gt; \$help, 
            man =&gt; \$man,
            "alpha-list" =&gt; \$alpha_list,
            "alpha-length=i" =&gt; \$alpha_length
    ) or pod2usage(2);

pod2usage(-exitval =&gt; 0, -verbose =&gt; 1) if $help;
pod2usage(-exitval =&gt; 0, -verbose =&gt; 2) if $man;

if ( $alpha_list ) {
    open FILE_OUT, "&gt;$ARGV[0]" or die "Cannot open input file $ARGV[0]\n";
    
    $alphabet = "abcdefghijklomnopqrstuvwxyz";
    
    @alpha_chars = split //, $alphabet;

    foreach $letter ( @alpha_chars ) {
        $letter_array[0] = $letter;
        for ( $i = 1; $i &lt; $alpha_length; $i++ ) {
            $letter_array[$i] = '!';
        }
        $string = join '', @letter_array;
        print FILE_OUT "\@!\@:".$string."\@&gt;\n";
    }   
}

__END__

=head1 MISCCW

misccw.pl - Miscellaneous functions

=head1 SYNOPSIS

misccw.pl [options] [input_file] [output_file]


 Options:
   --help|-h|-?      brief help message
   --man|-m          full documentation
   --alpha-list      generate a list of alphabetic markers

=head1 OPTIONS

=over 8

=item B&lt;--help&gt;

Print a brief help message and exit.

=item B&lt;--man&gt;

Print the manual page and exit.

=item B&lt;--alpha-list&gt;

Output a list of markers of the form @:?????@&gt; in &lt;output_file&gt;

=back

=head1 DESCRIPTION

B&lt;misccw.pl&gt; will possibly read the given &lt;input_file&gt;, and likely output 
something in the &lt;output_file&gt; depending on the options given.

=cut
</pre></body></html>