the best way is to bild a modul and include it with use dont forget to export the vars. Take a look on exporter modul hope it helps Martin
Natalia Vasilchenko schrieb: > > 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] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]