Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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??

in reply to modulino and $VERSION

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 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 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


  • Comment on Re: modulino and $VERSION (all code in module , script as module )
  • Download Code

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1093171]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-07-23 08:28 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.