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