At 12:15 AM 6/28/01 +0200, Jos I. Boumans wrote:

>1.    script that holds global vars, let's call it config.pl
>
>### config.pl ###
>$usr = 'foo';
>$pwd = 'bar;
>$host = 'bleh.com';
>
>### in your script you'd say: ###
>require 'config.pl'
>use vars qw($usr $pwd $host); #these 3 vars are 'used' by your config file,
>thus poluting your namespace that way

I think you want the "usr vars" to precede the "require".
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com

Reply via email to