Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: How to share a group of functions with multiple main processes?

by Eily (Prior)
on Nov 19, 2013 at 17:45 UTC ( #1063365=note: print w/replies, xml ) Need Help??

in reply to How to share a group of functions with multiple main processes?

How do you run your two perl scripts? If it was indeed impossible for multiple scripts to use (well, require in your case) the same module at the same time, that issue would have been raised long ago.

I recommend you read Perl Modules. To make it short, if (something that is not a standalone Perl script but should be included, ie a module should have the .pm extension) is in the same folder as your script, to include it you just have to write: use PrintVar. And if it is in Something, use Something::Printvar;. This would allow you to move all your files at once without having to change every include path. You should still read Perl Modules if you want to make "good" Perl modules, to learn about packages (namespaces) and exporting.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1063365]
[Corion]: This is a toy clone of Jekyll, currently named MrHyde. But maybe I'll change that name to Jokel / Yokel, or some other play on the name , still mildly unfunny ;)
[choroba]: Or maybe Utterson?

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2018-05-22 11:15 GMT
Find Nodes?
    Voting Booth?