The secret is the string form of eval:
my $a = 'somesub($arg1, $arg2) if $joe'; eval $a; [download]
In reply to Re: Dynamic Code? by btrott in thread Dynamic Code? by kael