http://www.perlmonks.org?node_id=262356


in reply to including another perl file

B.pl would have to contain valid perl code, and then in your A.pl you could...

eval { require "B.pl"; } if ($@) { # deal with error } ...
...this will make all your variables in B.pl available in A.pl.

Cheers!

--
hiseldl
What time is it? It's Camel Time!