|Perl: the Markov chain saw|
Re: looking for feedback on my first scriptby Discipulus (Abbot)
|on Jan 08, 2021 at 16:09 UTC||Need Help??|
at first glance it seems ok. About arguments of the script: no one rembemer the correct order of them after 2 minutes. See The Dynamic Duo --or-- Holy Getopt::Long, Pod::UsageMan! for more info. I always use the following format:
Then you can use File::Spec to a more robust path creation and look for a date module to see if it helps managing date formats.
You can use eval inside a block to mask the scope of $@ and check $^E (last operating system error) too.
PS my last suggestion is to follow haukex's sugestions :)
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.