Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: invoking module functions from a test script

by chexmix (Hermit)
on Nov 27, 2019 at 18:37 UTC ( #11109320=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11109320]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2022-08-17 20:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?