in reply to Re: how to call a sub via variable in library
in thread how to call a sub via variable in library
I've been staring at this unholy construct $self->{&{\&{$testname}}}->($system); for about 15 minutes, And I still haven't a clue what it's meant to do.This is a very obscure and useless feature of Perl. Documented in strict
is allowed so that "goto &$AUTOLOAD" would not break under stricture.$bar = \&{'foo'}; &$bar;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to call a sub via variable in library
by BrowserUk (Patriarch) on Nov 17, 2014 at 19:46 UTC |