Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: data structure question

by tobyink (Abbot)
on Aug 30, 2013 at 12:12 UTC ( #1051616=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    {
        package Person;
    ...
    
    my $alice = Person->new(name => 'Alice', age => 32);
    $alice->introduce_yourself;
    
  2. or download this
    my $alice = Person->new(name => 'Alice', age => 32);
    my $bob   = Person->new(name => 'Bob', age => 31);
    
    $_->introduce_yourself for $alice, $bob;
    
  3. or download this
    {
        package Person;
    ...
    $alice->bear_children($bob, 'Carol', 'Dave', 'Eve');
    
    print "Bob is a father!\n" if $bob->is_parent;
    
  4. or download this
    use Moops;
    
    ...
    $alice->bear_children($bob, 'Carol', 'Dave', 'Eve');
    
    say "Bob is a father!" if $bob->is_parent;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2014-08-01 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (257 votes), past polls