in reply to command line options syntax

You want to use the Getopt::Std module that comes with perl. perldoc Getopt::Std for more info.

Replies are listed 'Best First'.
Re: Re: command line options syntax
by $code or die (Deacon) on Feb 21, 2001 at 08:11 UTC
    GetOpt::Std only allows single-character option names, so "-ip" would be out. Also I think that it doesn't handle multiple values for a switch. This isn't mentioned in GetOpt::Std docs, but it is for GetOpt::Long.

    Maybe GetOpt::Mixed would be a good suggestion - because it combines long and std with some extras.

    Sidenote/Update: BTW, there's also GetOpt::Simple, but it doesn't look very simple!

    $code or die
    Using perl at
    The Spiders Web