Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Dear Moose docs...

by chromatic (Archbishop)
on Feb 10, 2013 at 04:13 UTC ( #1018023=note: print w/replies, xml ) Need Help??


in reply to Dear Moose docs...

how do you call the accessor methods?

Just as you did. The interesting question the documentation hasn't made clear to you is "How do I initialize attributes when I call the constructor?":

my $p = Point->new( x => 10, y => 20 );

The Objects chapter in the Modern Perl book may be a more gentle (and complete) introduction to Moose.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018023]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2017-08-19 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (312 votes). Check out past polls.

    Notices?