Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: invoking module functions from a test script

by chexmix (Hermit)
on Nov 27, 2019 at 18:37 UTC ( [id://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

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?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-29 09:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found