in reply to How do I include a file and execute the code in the file?

Write a module that exports functions. Call the functions instead of requireing the file. See perlmod or use Super Search to look for 'writing a module'.
  • Comment on Re: How do I include a file and execute the code in the file?