home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!news.cerf.net!netlabs!lwall
- From: lwall@netlabs.com (Larry Wall)
- Subject: Re: How to handle switches and args
- Message-ID: <1992Dec17.195227.20375@netlabs.com>
- Sender: news@netlabs.com
- Nntp-Posting-Host: scalpel.netlabs.com
- Organization: NetLabs, Inc.
- References: <1992Dec16.195350.8532@drd.com>
- Date: Thu, 17 Dec 1992 19:52:27 GMT
- Lines: 17
-
- In article <1992Dec16.195350.8532@drd.com> mark@drd.com (Resident.Alien) writes:
- : What's the current consensus and generally favored
- : method to handle switches and args to a script?
- :
- :
- : I'm improving a currently existing script which is wholly interactive
- : to take args so I can feed it things from my mail reader.
- :
- : something like:
- :
- : | dobug.pl -app foo -cat bar -topic 'This is the topic of this bug report'
- :
- : Is there some generally approved package to handle such an animal?
-
- Have a look at newgetopt.pl in the Perl library.
-
- Larry
-