![]() |
|
No such thing as a small change | |
PerlMonks |
Re^2: Using guards for script execution? (no modulinos , an evil gimmick )by Anonymous Monk |
on Mar 01, 2017 at 01:02 UTC ( #1183221=note: print w/replies, xml ) | Need Help?? |
no, don't use modulinos, they offer no benefits in perl, they're actually an evil gimmick scripts shouldn't pretend to be modules, scripts should use modules Deciding what sub/method to run based on how the "module" (scriptfile) is loaded , is about as pointless and dumb as it gets Make it into a real module, then change the script to use it
modulino and perldoc, Re: modulino and $VERSION (all code in module , script as module )
In Section
Seekers of Perl Wisdom
|
|