Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
There's more than one way to do things
 
PerlMonks  

Re: Perl OO with Class::Struct

by tobyink (Abbot)
on Dec 13, 2013 at 16:21 UTC ( #1067037=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $cat1   = Cat->new(name=>'Garfield');
    my $cat2   = Cat->new(name=>'Felix');
    my $litter = Litter->new(cats => [$cat1, $cat2, 1]);
    
  2. or download this
    use strict;
    use warnings;
    ...
    my $cat1   = Cat->new(name=>'Garfield');
    my $cat2   = Cat->new(name=>'Felix');
    my $litter = Litter->new(cats => [$cat1, $cat2, 1]);
    
  3. or download this
    use Moops;
    
    ...
    my $cat1   = Cat->new(name=>'Garfield');
    my $cat2   = Cat->new(name=>'Felix');
    my $litter = Litter->new(cats => [$cat1, $cat2, 1]);
    
  4. or download this
    use strict;
    use warnings;
    ...
    my $cat1   = Cat->new(name=>'Garfield');
    my $cat2   = Cat->new(name=>'Felix');
    my $litter = Litter->new(cats => [$cat1, $cat2, 1]);
    
  5. or download this
    use strict;
    use warnings;
    ...
    my $cat1   = Cat->new(name=>'Garfield');
    my $cat2   = Cat->new(name=>'Felix');
    my $litter = Litter->new(cats => [$cat1, $cat2, 1]);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2014-04-21 12:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (495 votes), past polls