in reply to Re^12: 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

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?

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

Replies are listed 'Best First'.
Re^14: Can't call method "otherwise" without a package or object reference at
by rpelak (Sexton) on Oct 08, 2010 at 19:53 UTC

    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

      I fixed the code, although there's no need for it now. (I must have copied it from the wrong place, cause I had tested it.)