use lib ('/path','/path/to/another/dir'); require 'foo.pl';