Krishna Kumar Rangan <[EMAIL PROTECTED]> writes:
>>
>> >However, when the script is interpreted from the
>C++
>> >application, loading bar.pm fails. The error
>message
>> >says that there is an error in line 27 in foo.pm -
>> >and line 27 contains 'use bar'. I am assuming that
>> >bar.so load fails.
You wanted more explicit error message but you have:
"
>sub not_loaded {
> $SIG{__DIE__} = 'IGNORE';
> die("module could not be loaded\n");
> exit(1);
>}
>BEGIN {
> $SIG{__DIE__} = \¬_loaded;
>}
>use lib '/tmp_user/kkrangan/build/external/lib';
>require Foo;
"
If you remove the __DIE__ handler or print the $_[0] passed to it
you will get a more explicit message.
At first glance I cannot see anything glaringly wrong.
--
Nick Ing-Simmons
http://www.ni-s.u-net.com/