develooper Front page | perl.perl5.porters | Postings from October 1999

Re: [ID 19990930.014] getops() Problems

Thread Previous
From:
Nick Ing-Simmons
Date:
October 1, 1999 04:35
Subject:
Re: [ID 19990930.014] getops() Problems
Message ID:
199910011134.MAA20843@tiuk.ti.com
<brent@marooned.tamu.edu> writes:
>The manpage also could use some work.
>perldoc Getopt::Std
>
>It appears to me that:
> getopt('oDI');    # -o, -D & -I take arg.
>appears to be incorrect...I understood that : signified if it took an arg or not.

That is the difference between 'getopt' (documented as above) and 'getopts'
which is documented (on the next line but one) to use the ':'. 

-- 
Nick Ing-Simmons <nik@tiuk.ti.com>
Via, but not speaking for: Texas Instruments Ltd.


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About