Want to call a function in a variable subroutine name, like that :
use subrest1;
use subrest2;
use subrest3;
$SUB = "subrest1";
Tried :
($OK,$MSG) = \&$SUB::Test_Ldev($LDEVID);
Returns me the following message :
Undefined subroutine &main:: called
Where is my error ?