Date: Sat, 3 Apr 2010 16:08:27 -0600 From: Chad Perrin <perrin@apotheon.com> To: FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG> Subject: Re: perl qstn... Message-ID: <20100403220827.GA10517@guilt.hydra> In-Reply-To: <867hoop771.fsf@red.stonehenge.com> References: <20100403210610.GA4135@thought.org> <867hoop771.fsf@red.stonehenge.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 03, 2010 at 02:17:06PM -0700, Randal L. Schwartz wrote: > >>>>> "Gary" =3D=3D Gary Kline <kline@thought.org> writes: >=20 > Gary> if a .pl script has to have at least one arg, is there an easy > Gary> way to do that? >=20 > Dare I say, "there's more than one way to do it?" :) >=20 > See the "Getopt::" family in the CPAN. >=20 > 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. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --fdj2RfSjLxBAspz7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAku3vFsACgkQ9mn/Pj01uKUvXQCfSHdeiZ5/KxSfWU9O3eMlJBbL aCUAn0q/axXaLWC+4JOqWl9S8aH9yFJ1 =cnrQ -----END PGP SIGNATURE----- --fdj2RfSjLxBAspz7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100403220827.GA10517>