in reply to Re: How ti include a file in Perl script
in thread How ti include a file in Perl script

You can use do, as was already suggested in the CB.
Or require, or even use. See perlmod for a discussion.

Don't forget to use a true value (like 1) as the last statement executed in the file. And you may have to change the file's name so it ends in ".pm" instead of in ".pl".

Be careful, you're using a Perl4 approach, it might sting you in the back if you try to require a file more than once, but from different packages.