On 2008-08-06 09:25:14, ABW wrote:
Show quoted text> On Tue Feb 14 07:44:56 2006, guest wrote:
> > Undefined subroutine &Template::Plugin::File::getpwuid called at
> > /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-
> > multi/Template/Plugin/File.pm
> > line 104.
>
> Yes, that's unfortunate, but it's expected behaviour. The documentation
> states that they may not be defined on your system and the calls will
> return undef. You're seeing the error raised by the eval { } that we
> wrap the calls in.
Practically every piece of perl code using eval {} has the same problem,
and in Tk this was solved by wrapping every "eval { ... }" into "eval {
local $SIG{__DIE__}; ... }". Later a subroutine named "catch" was
defined doing exactly this. I am not exactly suggesting to go this way
in TT2, but wanted just to point out that there's a possible workaround.
Regards,
Slaven