On Nov 12, 2005, at 1:56 AM, James Reynolds wrote:

Is there someway to execute this code like this:

$subroutine_name = "something"; # can't change
$hashref->{'key'}='value'; # can't change

eval "$subroutine_name($hashref)"; # how do I eval this? It doesn't eval.

You want:

eval "$subroutine_name(\$hashref)";

 -Ken

Reply via email to