[Catalyst] UNIVERSAL:require:ERROR
Sebastian Riedel
sri at oook.de
Sun Mar 13 01:14:04 CET 2005
Jose Nyimi wrote:
> $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 ;)
>
UNIVERSAL::require is just a plain wrapper around eval/CORE::require,
i'm lazy so i prefer $@. ;)
--
sebastian
More information about the Catalyst
mailing list