in reply to Re: Can't Use Storable on OS X?
in thread Can't Use Storable on OS X?

I'm a bit confused now.

Are you saying I can just comment out that 'eval' statement and not get the error?

More details -- I get:

Agent.pm: Can't locate Log/Agent.pm in @INC (@INC contains: /System/Li +brary/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/ +Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl + /Network/Library/Perl .) at (eval 3) line 2. BEGIN failed--compilati +on aborted at (eval 3) line 2.

Update: OK commenting out the eval statement didn't make any difference, but in hindsight that was a bit stupid.

But I'm more confused than ever.

If I don't use Carp's fatalsToBrowser, then everything works fine, as far as I can see. So something, somewhere, has a fatal error, but it's not fatal to my script, it's fatal to one of the modules?

So I should turn off fatalsToBrowser before I use Storable, and turn it back on after?

Also, this is a broader definition of "fatal" than I was expecting. Obviously I don't understand the "exception paradigm" mentioned in the Storable docs.



“Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.”
M-J D

Replies are listed 'Best First'.
Re: Re: Re: Can't Use Storable on OS X?
by edan (Curate) on Jul 15, 2003 at 11:18 UTC

    (Sorry it has taken me a while to reply, but I don't have much to offer - just didn't want to leave you hanging)

    I'm confused by that error message, too. Do you have your own module Agent.pm in which you have a 'use Log::Agent'? Wait, that doesn't make sense, because the error says it's coming from within an eval... um, sorry I can't be of much help, unless you want to try posting your actual code to your scratchpad, or something... good luck!

    --
    3dan