Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Using a 'getopt' in module code

by revence27 (Novice)
on Dec 05, 2006 at 08:42 UTC ( [id://587817]=note: print w/replies, xml ) Need Help??


in reply to Using a 'getopt' in module code

I ended up with similar problems often enough, so I decided to write something targetted for that particular problem. Most of the solutions I found had a heavy Unix slant, and yet I don't remember a single time I wrote Perl that wasn't meant for Win32, although I never write it on Win32.

So, here it is, in the Code Catacombs.

It has a strong Lispic feel, since it lets you write the predicates that choose the arguments that will be classed. And ... hey, just read the POD.

I should change it to allow more than one argument as a value of the key arguments (something like -o file1 file2 (think GCC args), in which case '-o' will be associated with both 'file1' and 'file2', and enable GCC, to write multiple similar executables with those kinds of args). That's very easy to change, and you can add that in one sweep. My code, by the way, is very clear. I pride myself in that — nobody can take that away from me! :o). It's object-oriented, of course.

Tell I what you think.

(PS: I have it in Py and Clisp, as well, where it has the above-mentioned feature ;o)



print "Something's gone wrong with my head: $!";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-25 06:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found