What if you won't know the variable name so that if a variable ( like in a hash ) comes up it gets evaluated and thena sub containing the varname gets executedif( $var1 eq "value X" ) { #code }
if( $do_additional_test{ $var1 } eq "true" ) { &additional_test_module::$var1( object_vars{ $var1 ) ); )
In reply to executing subroutines via variable by Angel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |