Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 browsing the Monastery: (14)
As of 2015-07-28 08:50 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 (254 votes), past polls