Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^7: global var

by shmem (Chancellor)
on Apr 06, 2017 at 13:15 UTC ( [id://1187273]=note: print w/replies, xml ) Need Help??


in reply to Re^6: global var
in thread global var

Not posting whole thing to avoid severe criticism from some commenters . etc.

If you avoid criticism, you avoid learning. If you avoid learning, all you ask is to help you out of a fix. I might do that for some time, but not very long. I'm not going to help you over the road everytime you want to go to the bakery.

That said, in no post of you in this thread which contains that purported BEGIN block from manageusers does this variable show up. Except in this last one. So things are changing, but I won't play a pointless shell game.

You need not import a variable from another package to use it. You can use it also fully qualified in your code, in this case as $manageusers::GetLoggedOnId - if this variable really exists in that package (who knows? It looks like you don't either). If it doesn't exist there and you use it anyways, it will be created. Will that be of any use? I don't know and won't guess.

You could, instead of posting the entire fluff here, stick it onto tultalk's scratchpad. Eventually somebody will look over it and tell you what's wrong.

Padre also says the function in question is not exported by manageusers.

  • use manageusers qw(GetLoggedOnId) imports a function
  • use manageusers qw($GetLoggedOnId) imports a scalar variable
  • use manageusers qw(%GetLoggedOnId) imports a hash variable
  • ...
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2025-02-11 08:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found