Search code examples
perlmason

How to "use" another module in perl mason?


In a regular perl script you can write

use Foo::Crypt::Employee qw(foo);

at the top of your file to use the foo subroutine throughout the rest of your script.

How can I do this in a perl mason file? Where would I put such a line of code?


Solution

  • See External Modules in the HTML::Mason documentation.