more useful options | |
PerlMonks |
Re^5: global varby poj (Abbot) |
on Apr 06, 2017 at 15:19 UTC ( [id://1187306]=note: print w/replies, xml ) | Need Help?? |
imports everything into that module, even subs/scalars
The advice in What_Not_to_Export regarding scalars is this Do not export variable names. Just because Exporter lets you do that, it does not mean you should. Which is where I think this node started with the problem $userid = $manageusers::LoggedOn_user_id;and I think you were on the right path here in eliminating the global variables I also changed $LoggedOn_user_id to a function call &GetLoggedOn_user_id to deliver the number to the other module and it still does not work. I think you now know to make it work. poj
In Section
Seekers of Perl Wisdom
|
|