You can register a command in App::Rad in three diferent ways:
$c->register('foo'); # "./myapp foo" goes to \&foo $c->register('foo', \&bar); # "./myapp foo" goes to \&bar
$c->register('foo', \&bar, 'this is the help for command foo');
$c->register( 'foo' => { "length" => { type => "num", condition => sub { $_ > 0 }, aliases => [ 'len', 'l' ], to_stash => 'mylength', required => 1, help => 'help for the --length option', } } )
To install App::Rad, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Rad
CPAN shell
perl -MCPAN -e shell install App::Rad
For more information on module installation, please visit the detailed CPAN module installation guide.