die $template->error() produces no line number

Posted by Kinopiko on Stack Overflow See other posts from Stack Overflow or by Kinopiko
Published on 2010-05-14T01:54:50Z Indexed on 2010/05/14 2:54 UTC
Read the original article Hit count: 394

Filed under:
|

In the following short program:

 use Template;
 my $template = Template->new (INCLUDE_PATH => ".");
 $template->process ("non-existent-file")
      or die $template->error ();

why does "die" not produce a line number and newline? Output looks like this:

$ perl template.pl
file error - non-existent-file: not found ~ 503 $ 

© Stack Overflow or respective owner

Related posts about perl

Related posts about template-toolkit