Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: data structure question

by tobyink (Canon)
on Aug 30, 2013 at 12:12 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1051616]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-03-28 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found