in reply to Best way to call another perl file

As anonymonk said, it's very easy to create a module (Re: How to creater your own Perl modules/libraries?) and then export whatever external functions you want with exporter. So easy that if you intend to keep the code around for more than a few minutes or will want to use the pdf generator stuff somewhere else that it's easier to create and use a module than to debug your other code where you've done it in some less modular way