home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / perl / 7718 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.0 KB  |  27 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!bnrgate!bcars267!bcars267!sbo
  3. From: sbo@bcars307.bnr.ca (Stephane Boucher)
  4. Subject: Re: getopts.pl bug fix
  5. In-Reply-To: Alan Stebbens's message of Fri, 8 Jan 1993 06:21:00 GMT
  6. Message-ID: <SBO.93Jan8101632@bcars307.bnr.ca>
  7. Sender: news@bnr.ca (usenet)
  8. Nntp-Posting-Host: bcars307
  9. Organization: /u/sbo/.organization
  10. References: <1993Jan8.062100.20495@uvaarpa.Virginia.EDU>
  11. Date: Fri, 8 Jan 1993 15:16:32 GMT
  12. Lines: 13
  13.  
  14. In article <1993Jan8.062100.20495@uvaarpa.Virginia.EDU> Alan Stebbens <aks%anywhere@hub.ucsb.edu> writes:
  15.  
  16.    Second, if you give two consecutive options, both of which want
  17.    arguments, the second option is used as the value for the first.  Eg:
  18.    '-x -y' results in $opt_x eq '-y', not the expected result of setting
  19.    both $opt_x and $opt_y.
  20.  
  21. And what if you want to give a value that start with a '-' ?
  22. E.G. value -y to option -x !
  23. --
  24.   ,
  25. Stephane Boucher | Bell-Northern Research
  26. sbo@bnr.ca       | 3500 Carling
  27.