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

Re: how to call a sub via variable in library

by glenn (Scribe)
on Nov 18, 2014 at 01:15 UTC ( #1107514=note: print w/replies, xml ) Need Help??


in reply to how to call a sub via variable in library

Thank you all for your input and responses. I got to spend a full day working reading perl documentation and learning exactly what does not work ;). Here is what I found and what worked....

Worked

my $coderef = \&{$testname}; $system = $coderef->($self, $system); #test

should have worked based on documentation but doesnt

$self->$testname($system);

I'm sorry that I did not get the example code down smaller and will try to do so so any future finders might understand more easily. Y'alls help is a life saver.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2022-01-19 15:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?