Transform your pl file in a package and then use use to get variables, 
or qualify the full name : $modname:varname.
define this variables global in modul or export the vars .
take a look on Exporter Modul
hope it helps
martin


Васильченко Наталья Анатольевна wrote:

> Hello, all!
> 
> I have some variables defined in file <userinfo.pl>
> 
> ....
> $user_ip = $ENV{'REMOTE_ADDR'};
> $user_name = $ENV{'AUTH_USER'};
> .....
> Now I want to use these values in other files.
> ....  
> 
> unless ($user_ip =~ /^10\./)... # 
> #etc.
> ....
> What should I do? use 'require userinfo.pl;' or use 'package' or something
> else?  
> 
> Thank you!
> 
> 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  • ... Васильченко Наталья Анатольевна
    • Martin

Reply via email to