in reply to Re^3: Undefined subroutine - newbie problem
in thread Undefined subroutine - newbie problem

well I don't really get that... my exc order says: "the program should also execute correctly when use statement is replaced with require";

I thought, that it will be simple use > require swap + different variables reffs, but It seems much more complex for the moment
  • Comment on Re^4: Undefined subroutine - newbie problem

Replies are listed 'Best First'.
Re^5: Undefined subroutine - newbie problem
by roboticus (Chancellor) on Aug 14, 2012 at 13:19 UTC

    blackhat:

    If you're trying to make it work the same way with use and require, try my second suggestion: use the fully qualified name when you call the function.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.