This seems like a really simple question but somehow my Google-Fu failed me.
What's the syntax for including functions from other files in Perl? I'm looking for something like C's #include "blah.h"
I saw the option for using Perl modules, but that seems like it'll require a not-insignificant rewrite of my current code.
Also,
do 'file.pl';
will work, but modules are the better solution.What are you looking for is 'require file.pl', but what you should be looking at is 'use module'.