in reply to Re: Handling Parameters
in thread Handling Parameters

Given the effort that's embodied in the Getopt modules, I'd really recommend using them unless you have some obscure requirement that they just can't meet. Re-inventing this wheel (a "better way"?) is well worth avoiding.

Still interesting from an academic perspective. Would anyone care to comment on how the Getopt modules are implemented?

--
use JAPH;
print JAPH::asString();

Replies are listed 'Best First'.
Re^3: Handling Parameters
by jethro (Monsignor) on Jan 07, 2009 at 17:53 UTC

    "better way" than xorl's algorithm not "better way" than Getopt.

    Getopt::Std uses the algorithm I described, with shift.