perrin at apotheon.com
Sat Apr 3 23:09:14 UTC 2010
On Sat, Apr 03, 2010 at 02:17:06PM -0700, Randal L. Schwartz wrote:
> >>>>> "Gary" == Gary Kline <kline at thought.org> writes:
> Gary> if a .pl script has to have at least one arg, is there an easy
> Gary> way to do that?
> Dare I say, "there's more than one way to do it?" :)
> See the "Getopt::" family in the CPAN.
> My favorite is Getopt::Long.
For simple scripts I tend to use Getopt::Std instead, but Getopt::Long is
great too. These two are pretty much the "standard" for command line
option handling and help message generation in Perl.
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100403/61b2cc9e/attachment.pgp
More information about the freebsd-questions