Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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);
  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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2016-08-24 07:15 GMT
Find Nodes?
    Voting Booth?
    The best thing I ever won in a lottery was:

    Results (338 votes). Check out past polls.