Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^3: Threads Calling Subroutine from different PM File

by BrowserUk (Pope)
on Nov 26, 2012 at 18:23 UTC ( #1005736=note: print w/replies, xml ) Need Help??

in reply to Re^2: Threads Calling Subroutine from different PM File
in thread Threads Calling Subroutine from different PM File

Ok, then how will this work: $class = MyModule::MySubModule;

The obvious answer to that question is: It won't work.

This is giving error for wrong syntax.

Unsurprising. If your code isn't syntactically correct, you will get an error.

Is there a subroutine called MySubModule in the package MyModule?

If not, what do think $class will end up containing?

The lesson here is that if you make stuff up when asking a question, instead of showing the actual problem code; the answers you get probably won't work for your actual code. So stop being ... and ask the real question you want answered!

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

RIP Neil Armstrong

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005736]
erix is not interested what the imbecile-in-chief has to say -- only what he will do
[GotToBTru]: that sounds fair to me
[davies]: I've just "approved" using syscalls in perl through inline c for at least the third time, but it still appears to me as unapproved. Is this just me?
[LanX]: erix: other side of the pond
[LanX]: davies: same problem

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (16)
As of 2017-01-16 15:03 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (151 votes). Check out past polls.