* David B. Bitton <[EMAIL PROTECTED]> [2002-08-19 10:50]:
> I'm trying to use PerlApp to make ttree into an exe.  The problem I'm
> having is the creating of the Template object.  I added some error
> handling to line 150 so it now reads:
> 
> ...
> my $template = Template->new($ttopts) || croak "error creating template
> object: $!";
> ...

Try changing the error catching to something like:

  my $template = Template->new($ttopts)
      || croak "error creating template object: $Template::ERROR";

And you might get something a little more useful (which should contain
$! anyway).


> I noticed this because when I ran PerlApp on ttree unmodified it was
> failing on process(), because $template was undefined.  Any idea what
> this is, and how I can go about fixing it?  BTW, ttree as a regular
> Perl script runs fine.

Are you running it with identical options, i.e., absolute and relative
are the same?

(darren)

-- 
Never make anything simple and efficient when a way can be found
to make it complex and wonderful.

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates

Reply via email to