Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Don't ask to ask, just ask
 
PerlMonks  

Re: Should I use Fields, InsideOuts, or Properties?

by mugwumpjism (Hermit)
on Jul 06, 2005 at 22:24 UTC ( #472955=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      package MyClass;
      use base qw(Class::Tangram);
    ...
      my $foo = MyClass->new( a => 1, b => 2 );
      print $foo->a;  # prints 1
      print $foo->b;  # prints 5
    
  2. or download this
      $foo->b(4);  # note: prints warning
      $foo->set_b(4);
    
  3. or download this
    $h=$ENV{HOME};my@q=split/\n\n/,`cat $h/.quotes`;$s="$h/."
    ."signature";$t=`cat $s`;print$t,"\n",$q[rand($#q)],"\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2014-04-17 08:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (441 votes), past polls