mat.pl -------------- use lib "lib"; use Utility; use Add; use Group; Add::Add_Acct(); #### lib/Add.pm -------------- package Add; ### I tryed exporter here with no luck, maybe I did it wrong? ### require Exporter; @ISA = qw(Exporter); @EXPORT = qw($USERID); sub Add_Acct { print "Adding an Account"; &ID; &LAST ; &FIRST; ##a prior dev did this sub calling, its crap I know ### &USERID; ##This sub takes user input ## print "ID: $ID - UserID: $USERID \n"; ## All vars defined and as expected here ## Group::Groups(); .... ... #### lib/Group.pm ------------------- package Group; sub Groups { print "ID: $ID - USERID: $USERID \n"; ### $ID is ok but $USERID is undefined ## .... ..... } #### sub USERID { $USERID = Utility::Single_Input('Input Account Name', $USERID, $REQUIRED); print "UserInput entered is $USERID \n"; }