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

$functions xor $methods

by Ovid (Cardinal)
on Oct 30, 2002 at 00:09 UTC ( [id://208923]=perlmeditation: 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} = _some_function($data);
    }
    
  2. or download this
    sub _some_function {
      my ( $self, $data ) = @_;
      return ParentClass::_some_function($data);
    }
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    my $o2 = Bar->new;
    $o2->foobared;
    print $o2->{foo};
    
  4. or download this
    3
    Bar=HASH(0xa065cc8)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://208923]
Approved by jynx
Front-paged by Aristotle
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-19 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found