in reply to Executing a string as a Perl command

That's exactly what eval EXPR does.
  • Comment on Re: Executing a string as a Perl command