Nosrettap
Nosrettap

Reputation: 11320

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?

Upvotes: 2

Views: 944

Answers (1)

PP.
PP.

Reputation: 10864

See External Modules in the HTML::Mason documentation.

Upvotes: 1

Related Questions