in reply to splitting a source file

You're probably going to want to try breaking your code up into modules - check out perlmod for some information on modules.