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


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

Well, um. Right you are!

Thanks and sorry for ... well, for too many words ;)

G

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

Replies are listed 'Best First'.
Re^3: invoking module functions from a test script
by bliako (Monsignor) on Nov 27, 2019 at 22:24 UTC

    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.)