in reply to Re^10: Can't call method "otherwise" without a package or object reference at
in thread Can't call method "otherwise" without a package or object reference at

Apparently that we too many levels or something

No, there's no reason to believe the module wasn't being loaded. You simply never imported the functions into the current package.

  • Comment on Re^11: Can't call method "otherwise" without a package or object reference at

Replies are listed 'Best First'.
Re^12: Can't call method "otherwise" without a package or object reference at
by rpelak (Sexton) on Oct 08, 2010 at 17:18 UTC
    I follow what you are saying, but then I can't explain why the other try catch blocks in the same sub tested fine.

      It makes no sense for them to be defined one place in the sub and not another (unless you have something weird in the sub like a use directive). I suspect they didn't actually test fine.

      What was the output I requested? What's the Deparse -p of one that tested fine?

        I agree it is always possible what appeared to test out as working was really something else happening. In fact based on other input, I think we should just assume that was the case.

        The deparse code came out to match, which further backs the false positive.

        The result of the begin block was an error... exists argument is not a HASH or ARRAY element at