Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Trying to understand Perl Objects

by jasonk (Parson)
on Apr 04, 2009 at 17:35 UTC ( #755463=note: print w/ replies, xml ) Need Help??


in reply to Trying to understand Perl Objects

In general what people do is put all those other things into the hash...

my $foo = bless( { name => 'Bo', color => 'white', complex_behaviors => [ { name => 'one' }, { name => 'two' }, { name => 'three' } ], }, 'Sheep' );

www.jasonkohles.com
We're not surrounded, we're in a target-rich environment!


Comment on Re: Trying to understand Perl Objects
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2015-07-04 16:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls