in reply to Sharing Global variables between scripts

Is your GetUser function exported from your CommonFunctions module to this module? Does it work if you say this?:
my $username = CommonFunctions::GetUser();
Update: what tilly said. The way the function would be exported, it is exported to the main package, not the DispatchUser package. The above code should work then.

Replies are listed 'Best First'.
Re: Re: Sharing Global variables between scripts
by TASdvlper (Monk) on Apr 16, 2004 at 22:25 UTC
    Yes, GetUser is exported from the CommonFunctions module. If I don't try to use those global variables, everything works fine.