Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Invoking a method whose name is computed

by afoken (Parson)
on Oct 02, 2012 at 05:43 UTC ( #996802=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Class->can("prefix_$name")->(Class,'first argument');
    $object->can("prefix_$name")->($object,'first argument');
    
  2. or download this
    my $method="prefix_$name";
    Class->$method('first argument');
    $object->$method('first argument');
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2014-07-24 07:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (158 votes), past polls