Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
Do you know where your variables are?
 
PerlMonks  

Re: Basic Class question (perlootut)

by Anonymous Monk
on Aug 21, 2013 at 10:12 UTC ( #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


Comment on Re: Basic Class question (perlootut)
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
Node Status?
node history
Node Type: note [id://1050319]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2014-04-21 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (495 votes), past polls