Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Apr 2010 00:07:38 -0400
From:      Greg Larkin <glarkin@FreeBSD.org>
To:        Gary Kline <kline@thought.org>
Cc:        FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG>
Subject:   Re: perl qstn...
Message-ID:  <4BB8108A.9080104@FreeBSD.org>
In-Reply-To: <20100403210610.GA4135@thought.org>
References:  <20100403210610.GA4135@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gary Kline wrote:
> guys,
> 
> i'm finally trying to get my private scripts and binaries in
> ~/bin in order.   several of my perl scripts were meant to be
> throwaway ... but a few seem to be more useful and i would have
> to have informational or usage{} type messages.  
> 
> if a .pl script has to have at least one arg, is there an easy
> way to do that?  can i have a perl fn called usage() that would
> be fed various strings?
> 
> tia,
> 
> gary
> 
> 
> 

Hi Gary,

Check out this Perl module that builds on Getopt::Long, but also
includes support for echoing usage messages for each option:
http://search.cpan.org/~rjbs/Getopt-Long-Descriptive-0.085/lib/Getopt/Long/Descriptive.pm

Hope that helps,
Greg

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku4EIoACgkQ0sRouByUApCXNgCgrLt1v3rV2+AjfxXMT1ew3GhE
pZIAn0P5O7L5koQflkiQOuoTA+75POOe
=Cyq4
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BB8108A.9080104>