home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / perl / 7531 < prev    next >
Encoding:
Text File  |  1992-12-21  |  970 b   |  30 lines

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