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

Re: Basic Class question (perlootut)

by Anonymous Monk
on Aug 21, 2013 at 10:12 UTC ( [id://1050319]=note: print w/replies, xml ) Need Help??


in reply to Basic Class question

hope someone could clear up?

perlootut, Modern Perl

What is the reason for the first argument that is passed to the routine in a class being the class name?

Implementation detail

Is this useful in certain ways?

Without this there is no OO

Secondly,

See above :)

Is there good reasons why this is the case,

See above, thats the way it is, the way it works

or am I doing something really silly!?

:) Somehow you managed to discover a lot without stumbling upon perlootut, http://modernperlbooks.com/books/modern_perl/index.html, or equivalent

Replies are listed 'Best First'.
Re^2: Basic Class question (perlootut)
by Anonymous Monk on Aug 21, 2013 at 10:14 UTC

    or am I doing something really silly!?

    See Path::Tiny, unless you're exporting a constructor like path(), you shouldn't be exporting anything :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found