Bus error -- Re: [mapserver-users] Re: Perl/mapscript error
Giorgio Volpe
giorgio@nauta.it
Thu, 02 May 2002 15:36:01 +0200
I've discovered, after many hours, that the problem is related, in my
case, to the fact that the sub raising the error on its return (clean
up) is called in an "eval" and the result of the call is than stored as
returned from eval ...
@res=eval( $perl )
after this, $@ contains "Not a HASH reference at
/usr/local/lib/perl/5.6.1/mapscript.pm ..."
if I change it to:
@res=eval( "my \@r=$perl;return \@r" )
error disappears!
Is it a scope related problem? A little perl confusion?
(if this can be of any neaning for someone, $perl contains a complex
reference to an object that is in an other package ... like
$me->{binded_obj}->method_causing_error() )
--
Giorgio
-----------------------------------------