"the function changes dynamically. So I can not call a sub."
A function is a sub, whether it be predeclared ( sub foo{return 'foo'}) or "dynamic" so to speak (a closure my $function = sub {return 'fooo'}; print &$function;).
"The script is running from a wrapper program which passes it functions via STDIN"
That sugguests to me you should be well versed in perlsec, cause in my opinion, that no good stratogy.
___crazyinsomniac_______________________________________
Disclaimer: Don't blame. It came from inside the void
perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;" |