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


in reply to include file "inline"

You can also make use of require. This does not make the methods / variables in there "inline", though. If you truly want to import methods / variables into your script go with davorg's advice.