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

Re: Private methods

by Ovid (Cardinal)
on Mar 09, 2003 at 18:30 UTC ( #241592=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    01:  my $_init_ = sub {
    02:    my $self = shift;
    ...
    14:    $self->$_init_();
    15:    return $self;
    16:  }
    
  2. or download this
    sub new {
      my $class = shift;
    ...
    sub _init {
      # instance initialization
    }
    
  3. or download this
    07:    my $type = shift;
    08:    my $class = ref($type) || $type;
    
  4. or download this
    $employee{Sally} = Employee->new;
    $employee{Bob}   = $employee{Sally}->new;
    
  5. or download this
    $employee{Sally} = Employee->new;
    $employee{Bob}   = $employee{Sally}->clone;
    
  6. or download this
    sub accessor_to_column {
      my ($proto,$column) = @_;
    ...
      }
      return $found_column;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2021-09-24 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?