Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Tutorial: Introduction to Object-Oriented Programming

by demerphq (Chancellor)
on Dec 10, 2002 at 16:24 UTC ( #218817=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub setPhrase {
      my $self = shift;
    ...
      my $self = shift;
      return $self->{phrase};
    }
    
  2. or download this
    sub Phrase {
      my $self=shift;
      $self->{phrase}=shift if @_;
      return $self->{phrase}
    }
    
  3. or download this
    sub Phrase {
      my $self=shift;
    ...
      }
      return $self->{phrase}
    }
    
  4. or download this
    my $dump=Data::Dumper->new([$foo])->Terse(1)->Purity(0)->Names(['foo']
    +)->Dump()
    
  5. or download this
    my $saver  = Saver::Database->new($db, $user, $pass);
    
  6. or download this
    $quote1->setPhrase($phrase);
    $quote1->setAuthor($author);
    
  7. or download this
    $quote1->Quote($phrase,$author);
    
  8. or download this
    $quote->Set(phrase=>$phrase,author=>$author);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2014-09-22 10:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (188 votes), past polls