CC: | lyon.lemmens [...] redlemon.nl |
Subject: | CallbackOnce fails to run a callback due to strict refs |
CallBackOnce fails in it's process function with the message:
Can\'t use string ("EMT::Constraint::email") as a subroutine ref while "strict refs" in use.
Comparing the code for Callback and CallbackOnce gives:
CallbackOnce:
my $ok = eval { $callback->( $value, $params ) };
Callback:
no strict 'refs';
my $ok = $callback->( $value, $params );
Now I wonder of both should actually be:
no strict 'refs';
my $ok = eval { $callback->( $value, $params ) };
I've made that change locally to both modules and it appears to work
--
Lyon