in reply to SOLVED: Processing arguments from command line or a script
NVM, read through the docs a little more closely. Solution:
sub anki_import { my $file = shift; opt verbose => ( isa => 'Bool', alias => 'v', comment => 'provide details on progress of Anki::Import' ); opt vverbose => ( isa => 'Bool', alias => 'vv', comment => 'verbose information plus debug info' ); my $args = optargs( @_ ); if ($args->{verbose}) .... } }
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|