Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^7: global var

by poj (Abbot)
on Apr 07, 2017 at 13:29 UTC ( [id://1187397] : note . print w/replies, xml ) Need Help??


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

Unit? Module? same difference, is it not?

Sorry to be so pedantic but it may be relevant to solving your problem. When you said in your post

I have global var in main unit:
@EXPORT = qw( $LoggedOn_user_id $VERSION = '0.0.1'; } our $LoggedOn_user_id;
do you mean that code is in the 'main' part of package manageusers. At the top maybe before the subroutines declaration ?

poj