in reply to Dynamic Subroutines?

I think you're looking for anonymous subroutines.
A quick example:
# Compile some anonymous subroutine code in a variable my $code='sub { print "A quick sample\n";}'; # Turn this into a reference to some executable code my $subroutine=eval $code; # Invoke the subroutine you just made &$subroutine();

This is just a quick example, hope it helps.

Malk