nysus has asked for the wisdom of the Perl Monks concerning the following question:
I didn't know much about scripting with Perl until pretty recently. I knew how to throw a Perl script into ~/bin to create commands and that was about the extent of my knowledge.
Over the past year or so, I have become much more familiar with creating, installing and running command-line scripts with Perl. But I still don't have much experience to know which method I should settle on. When is it appropriate to just throw something in ~/bin? When should I prefer a modulino? When should I create a module for my command? Do I ever need to create a module if I'm just going to use the command myself? If I do create a module, which approach should I use? App:Cmd? How about MooseX::App::Cmd? What other cool approaches are there to create new command line initiated scripts? And generally speaking, what are the best, most efficient practices for creating a cool library of perl commands to help you get work done faster? I'd be very interested in hearing what others are doing in this area. Thanks!
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: TIMTOWTDI but how do you use Perl to create CLI scripts?
by choroba (Cardinal) on Oct 22, 2019 at 05:54 UTC | |
|
Re: TIMTOWTDI but how do you use Perl to create CLI scripts?
by haj (Vicar) on Oct 22, 2019 at 07:37 UTC | |
|
Re: TIMTOWTDI but how do you use Perl to create CLI scripts?
by rjt (Curate) on Oct 22, 2019 at 09:14 UTC | |
|
Re: TIMTOWTDI but how do you use Perl to create CLI scripts?
by daxim (Curate) on Oct 22, 2019 at 07:44 UTC |