in reply to Perl equivalent of C's #include

yep. You can use require "./myvariables.pl"; at the top of your script. It imports everything in the perl library into your script. There are fancier ways to do the same thing, but this is probably the easiest.