Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 about the Monastery: (11)
As of 2014-12-17 20:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (32 votes), past polls