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

Re: [ID 19990930.014] getops() Problems

Thread Previous
Nick Ing-Simmons
October 1, 1999 04:35
Re: [ID 19990930.014] getops() Problems
Message ID:
<> 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 <>
Via, but not speaking for: Texas Instruments Ltd.

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About