NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
commands with subcommands (Score:1)
I hate to be the guy* who just posts "use my code to write your code," but for writing this kind of "cmd subcmd --opt" program, have a look at App::Cmd. It takes away a lot of drudgery.
* this is not actually true
rjbs
Re: (Score:1)
No reason at all! I'll surely take a look. Anyway, I didn't anything particular in this case... so I'm probably in time to use it anyway, thanks. Just in case, I'm wondering about adding a "--interactive" to start some shell... do you have/know anything to do this as well? :D
Re: (Score:1)
I haven't had a chance to use it, but Term::ShellUI looks promising.
Re:commands with subcommands (Score:1)
Well, it doesn't simply look promising, it's actually awesome. I added the interactive mode and it seems to work... just right out of the box and with a minor refactoring of code.
Thanks!
Reply to This
Parent