Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: $functions xor $methods

by kelan (Deacon)
on Oct 30, 2002 at 13:13 UTC ( [id://209052]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub foo {
      my ($self, $data) = @_;
      $self->{bar} = $self->method($data);
    }
    
  2. or download this
    sub foo {
      my ($self, $data) = @_;
      $self->{bar} = method($self, $data);
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2024-03-28 09:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found