Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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


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,, or equivalent

Comment on Re: Basic Class question (perlootut)
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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2016-02-13 01:22 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (415 votes), past polls