* Eric Wilhelm <[EMAIL PROTECTED]> [2005-06-17 18:15]: > It's not really trivial by the time you add meats, cheeses, > breads, and mustard though. All of these things come in many > "flavors" and you might have a config file with your favorites > listed in it so that running "go_shop" with no arguments gives > you a routine trip, but you want to be able to change these > things when you get bored of the same-old options.
That’s not trivial, period. Any solution will have to be pretty complex if it’s supposed to handle this – especially if you want the user to be able to override only some defaults, but not others. I’m not sure that any form of command line will be anything other than craptacular for a job like this. This would all be much easier if we had actual examples to discuss. > What I'm trying to do with Getopt::Modern here is to establish > some conventions which allow this to happen internally. This > saves the author some code and gives the user a guaranteed > consistent experience with multiple programs. That’s never going to happen for the users. There are way too many other programs already out there. Most of them work differently from yours. Regards, -- #Aristotle *AUTOLOAD=*_=sub{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1}; &Just->another->Perl->hacker;