Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Passing parameters to object method references

by citromatik (Curate)
on Jun 21, 2007 at 11:27 UTC ( #622537=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
      my $sub = $subref->{dispatch}->{$pos};
      Dump ($sub);  ###!!
    }
    
  2. or download this
    my ($self);
    $self = bless( {}, 'Foo' );
    ...
               use strict 'refs';
               $self->subb;
             };
    
  3. or download this
    package Foo;
    use strict; use warnings;
    ...
    }
    
    1;
    
  4. or download this
    POS: A
    $CODE1 = sub {
    ...
               use strict 'refs';
               return;
             };
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2021-03-03 21:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (94 votes). Check out past polls.

    Notices?