Question

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?

Was it helpful?

Solution

See External Modules in the HTML::Mason documentation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top