Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: How can I call a Perl sub with an object from a sub name stored in a var?

by stevieb (Canon)
on Dec 08, 2020 at 18:51 UTC ( [id://11124852]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $method_1 = 'twist_rubber_arm';
    my $var_6    = 'choke_chicken';
    ...
    # far, far later on in the code
    
    say $object->$var_6('tomorrow');
    

Log In?
Username:
Password:

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

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

    No recent polls found