[Catalyst] UNIVERSAL:require:ERROR

Jose Nyimi josenyimi at skynet.be
Sat Mar 12 23:36:09 CET 2005


Hello,
 
I’m trying to learn from the Catalyst code.
I started from Catalyst.pm file and I’m seeing the following:
 
$engine->require;
    die qq/Couldn't load engine "$engine", "$@"/ if $@;
 
I would suggest to replace $@ by $UNIVERSAL::require::ERROR
To make it clear that you are using the UNIVERSAL::require module here
and not the eval “require $engine”; approach.
 
I’m also wondering if $@ will contain the correct value since “eval” is
not in the scene ;)
 
perldoc perlvar
says:
$@
The Perl syntax error message from the last
<file:///c:\Perl\html\lib\Pod\perlfunc.html#item_eval> eval() operator.
If $@ is the null string, the last
<file:///c:\Perl\html\lib\Pod\perlfunc.html#item_eval> eval() parsed and
executed correctly ...
 
BR,
José.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20050312/dd23651b/attachment.html


More information about the Catalyst mailing list