develooper Front page | perl.perl5.porters | Postings from May 2013

[perl #116098] Error in Getopt::Std documentation examples

Thread Previous
James E Keenan via RT
May 10, 2013 02:11
[perl #116098] Error in Getopt::Std documentation examples
Message ID:
On Mon Dec 17 11:29:46 2012, rrt wrote:
> On 16 December 2012 21:25, Dave Mitchell via RT
> <>wrote:
> > I think you have confused the optopt() function with the getopts()
> > function.
> I think you mean "getopt", not "optopt". Quite right! I switched from
> getopt to getopts, and then wrote the bug report thinking I was still
> getopt.
> The former doesn't recognise ':', and assumes that every switch
> > has an argument
> >
> Given that this is of little interest, maybe it's worth reordering the
> documentation so that getopts is documented first? Then fewer programmers
> will start using the obviously-named function, then discover that it has
> this weird behaviour and switch to getopts.
> Really, getopt should be deprecated.

Since that would be a significant feature request, can you supply a patch?

Otherwise I think we should close this ticket.

Thank you very much.
Jim Keenan

via perlbug:  queue: perl5 status: open

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