in reply to Distributing/Accessing Template::Toolkit Templates
If you install the templates in a directory relative to the directory containing your module then you can use %INC to get the path:
use warnings; use strict; use Foo; (my $fooDir = $INC{'Foo.pm'}) =~ s/Foo\.pm$//; my $tmplDir = "${fooDir}Templates";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Distributing/Accessing Template::Toolkit Templates
by three18ti (Monk) on Nov 10, 2013 at 18:57 UTC | |
by GrandFather (Saint) on Nov 10, 2013 at 21:16 UTC |