How to include a file in perl

You shouldn’t be including files in Perl as you do in PHP, it doesn’t work the same way.

Ideally you should be importing modules (.pm-files) into your file with the “use” statement. However, if you’re unable to change the way your setup works you can fudge it with the require-statement:
require “filename.pl”