[Omaha.pm] bad perl - need help - dispatch table
Mike Hostetler
hostetlerm at gmail.com
Wed Aug 25 09:56:25 CDT 2004
On Wed, 25 Aug 2004 09:43:02 -0500, Terry <td3201 at gmail.com> wrote:
> Hello,
>
> I have a very ugly script that simply reads in a file, parses and
> outputs HTML formatted text. See my kludge at the end of the email.
>
> The program is invoked as ./program $option where $option can be a
> number of different things. For this example I will say $option =
> asdf. I am almost embarrassed to post this code cuz I suck so bad
> at this....but that's life.
>
Take a look at using Getopt or Getopt::Long. They should be standard
with your Perl, and they make life easier. Do a "perldoc Getopt" for
more info. A decent page for it is at:
http://www.aplawrence.com/Unix/perlgetopts.html
--
Mike Hostetler
thehaas at binary.net
http://www.binary.net/thehaas
More information about the Omaha-pm
mailing list