in reply to Re^2: Can't call method on an undefined value?
in thread Can't call method on an undefined value?

However, the important points to note:
  1. strict makes the declaration for $name required, removing that as a possible problem.
  2. Global symbol "$person" requires explicit package name at test.pl line 5. makes it apparent that there's a problem with the declaration of $person.
  3. Once you know there's a problem with the declaration of $person, you look at that line and the line above. You quickly find the missing semi-colon.

Hence, the readily-apparent comment. :-)

  • Comment on Re^3: Can't call method on an undefined value?

Replies are listed 'Best First'.
Re^4: Can't call method on an undefined value?
by ysth (Canon) on Apr 11, 2005 at 17:34 UTC
    What's not there can be the hardest to see...
      ... but it's a lot easier when you know where in the haystack the needle has to be.