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


in reply to Accessing Large Else-If Condition in a Separate Files

If you absolutely must use Perl code instead of a datafile, you can use do (the do EXPR form) to execute another file, e.g., do "mydata.pl".