in reply to OOPS and Eval Statement on Strings
is a subroutine call ?$data->()
The subroutine call is completely different from yout hashref-dereference in
What you seem to be looking for (It is unclear from your description) is something like:$data->{somekey1}{somekey2}
$y='{channel}{item}'; foreach my $e (@{eval("\$data->$y")}){...
I hope life isn't a big joke, because I don't get it.
-SNL
|
|---|