in reply to Re: Dynamically constructed function calls
in thread Dynamically constructed function calls
It has to be a scalar, but it doesn't need to be a variable. You can say
However, using a variable is probably clearer.$f->${\("prefix_$key")}($atr);
Update: added the missing '$' pointed out by ikegami
--Dave
Opinions my own; statements of fact may be in error.
In Section
Seekers of Perl Wisdom