Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: modulino and $VERSION (all code in module , script as module )by Anonymous Monk |
on Jul 11, 2014 at 03:30 UTC ( [id://1093171]=note: print w/replies, xml ) | Need Help?? |
Greetings, I'm attempting to learn brian_d_foy's modulino. In this early prototype I'm getting an uninitialized error about $VERSION. What is the cause? You've pasted a module into a script -- that is anti-modulino friend I didn't realize until now that his modulino demo has that UNITCHECK stuff -- it doesn't belong in 99.9999% of code The most useful part of the modulino idea is having all code in modules, and having your program , your foo.pl call one function, say use MyModulino; MyModulino::MainCLI(); This is whats most important part of modulino idea, that code is in the module, its modular, its testable, its extensible The anti-modulino way is put all the code in foo.pl and App::MyModulino is just empty module with $VERSION number I guess all this time he's been to make modulino mean something beyond "script as module" -- and all this time I've been using modulino as script-as-module Whoa
In Section
Seekers of Perl Wisdom
|
|