Pre-Processing new template and variables

Mark Haney <markh-rOuQeLG7NUhWk0Htik3J/[email protected]> Thu, 06 Sep 2012 09:46:52 -0400
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <[email protected]>
I'm trying to get the INCLUDE_PATH in my template to include a perl 
variable.  Here's the code I'm trying to use:

>  my $tmplID="epic";
>     my $user_id=`id -u`;
>     if ($user_id = "1000"){my $tmplID = "markh";}
>
>     my $template = Template->new({
>     # where to find template files
>     INCLUDE_PATH => ['/home/'.$tmplID.'/work/epic.git/code/embmon-web/src', '/home/'.$tmplID.'/work/epic.git/code/embmon-web/lib'],

However, I'm not getting the value of $tmplID passed as my script is 
bombing.  I don't have any debug data yet, but I'm wondering if there is 
a better way to do this? Or ideas on how to fix it.

Thanks.



-- 

Mark Haney
Software Developer/Consultant
AB Emblem
markh-rOuQeLG7NUhWk0Htik3J/[email protected]
Linux marius.homelinux.org 3.5.1-1.fc17.x86_64 GNU/Linux