roncoe2000 has asked for the wisdom of the Perl Monks concerning the following question:
this works hard coded obviously: foreach $e (@{$data->{channel}{item} }) but not for foreach $e (@{$data->(eval($y) }) where I want eval($y) = {channel}{item} (which is in the code below) or {item} with the appropriate data struc +ture . Got errors about not blessing the eval variable
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: OOPS and Eval Statement on Strings
by NetWallah (Canon) on May 27, 2012 at 05:50 UTC | |
|
Re: OOPS and Eval Statement on Strings
by Anonymous Monk on May 27, 2012 at 08:24 UTC |