in reply to shared variables

Try:
our $var = "Lord only knows if this will work..."; 1;
in your testlib.pl file.
-imran
P.S. There are better ways to tackle this though (by using modules that export variables).