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.

Essentially I get the subroutine names to execute from a text file, and there will be thousands of differently named subroutines. I simplified the reason why the hash exists in this example. Needless to say I can't get out of using it that way easily, if at all.

--

Thanks,

James Reynolds
University of Utah
Student Computing Labs
[EMAIL PROTECTED]
801-585-9811

Reply via email to