Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How do YOU do OO in Perl?

by Juerd (Abbot)
on Oct 10, 2003 at 06:54 UTC ( #298179=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Some::Class;
    
    ...
        my ($self, $quux) = @_;
        ...
    }
    
  2. or download this
    my $thing = Some::Class->new( id => 15, foo => "Hello" );
    $thing->foo =~ s/e/a/;
    ...
    
    $thing->blah = 10;
    $thing->blah = 60;  # dies
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://298179]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2017-02-28 17:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (406 votes). Check out past polls.