in reply to Parsing commandline with subcommands

App::Cmd is my favourite solution for this, though I've also used MooX::Cmd which is rather nice too, albeit poorly documented.

(Here are a couple of examples using MooX::Cmd because you won't find many in the documentation... Re: Can anybody tell me how MooX::Cmd is supposed to work? // my fork of WWW-Questhub on github.)

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
  • Comment on Re: Parsing commandline with subcommands