Posted on 2012-01-22 16:04:11.412584-08 by kerisman in response to 13613
Re: sub command dispatching confusion
You would create the class for the "foo" command like this:
package My::Queue::Command::Property::Foo; use base qw( My::Queue::Command::Property );

...and the class for the "bar" command (which you want to be a subcommand of "foo") like this:
package My::Queue::Command::Property::Bar; use base qw( My::Queue::Command::Property::Foo );

Thus, the class hierarchy reflects the command/subcommand relationship. Again, it's about inheritance, not naming conventions. You're left in control of the naming decisions.
Thanks, glad you're enjoying CLIF!
Direct Responses: 13616 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.