From owner-freebsd-questions@FreeBSD.ORG Sat Apr 3 23:09:14 2010 Return-Path: Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B4F7106564A for ; Sat, 3 Apr 2010 23:09:14 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: from outbound-mail-313.bluehost.com (outbound-mail-313.bluehost.com [67.222.54.6]) by mx1.freebsd.org (Postfix) with SMTP id 431028FC1A for ; Sat, 3 Apr 2010 23:09:14 +0000 (UTC) Received: (qmail 22148 invoked by uid 0); 3 Apr 2010 23:09:13 -0000 Received: from unknown (HELO box543.bluehost.com) (74.220.219.143) by cpoproxy3.bluehost.com with SMTP; 3 Apr 2010 23:09:13 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=apotheon.com; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:References:Mime-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent:X-Identified-User; b=kSeUB8l28P91JRs4HHQpTbwnwZ6mvgPo/CNL0/L7TIFlYk6h/+AGgYNJMI+kuSW+e3R+jhQKvCyeoO4uR8cE8a/6hU/1+vUx9+2GakqSYhraT9d+vjGwaShudRx/JPE1; Received: from c-24-8-180-234.hsd1.co.comcast.net ([24.8.180.234] helo=kukaburra.hydra) by box543.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NyCSm-00060d-78 for freebsd-questions@FreeBSD.ORG; Sat, 03 Apr 2010 17:09:13 -0600 Received: by kukaburra.hydra (sSMTP sendmail emulation); Sat, 03 Apr 2010 16:08:27 -0600 Date: Sat, 3 Apr 2010 16:08:27 -0600 From: Chad Perrin To: FreeBSD Mailing List Message-ID: <20100403220827.GA10517@guilt.hydra> Mail-Followup-To: FreeBSD Mailing List References: <20100403210610.GA4135@thought.org> <867hoop771.fsf@red.stonehenge.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline In-Reply-To: <867hoop771.fsf@red.stonehenge.com> User-Agent: Mutt/1.4.2.3i X-Identified-User: {2737:box543.bluehost.com:apotheon:apotheon.org} {sentby:smtp auth 24.8.180.234 authed with ren@apotheon.org} Cc: Subject: Re: perl qstn... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Apr 2010 23:09:14 -0000 --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 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--