Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Handling Parameters

by wol (Hermit)
on Jan 07, 2009 at 17:41 UTC ( [id://734683]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://734683]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2024-04-23 09:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found