http://qs1969.pair.com?node_id=11109333


in reply to Re^2: invoking module functions from a test script
in thread invoking module functions from a test script

if rubber ducks had ears ...

(bottom line is: in calling an object's method, $object->method(1,2,3), 1st received param is always the object ref, followed by all other params you called that method with, the 1,2,3. That's not the same when calling a class method "statically", e.g. class::method(1,2,3) -- you get 1,2,3 as params, no object ref this time as there is none.)

  • Comment on Re^3: invoking module functions from a test script