in reply to Array Question
In the INPUTS section you wrote:
@newarray = $v;$v contains a reference to an array, and with this assignment you are creating an array with just one element (a reference to another array). Try this instead:
@newarray = @$vThis way, you are assigning to @newarray the array that $v refers to
Hope this helps
citromatikUpdate::Also, $thisItem holds a reference to a hash, you can investigate the referenced hash with Data::Dumper:
if ($k eq "inputs"){ print "\n\n"."INPUTS"."\n"; @newarray = @$v; foreach $thisItem(@newarray){ print Dumper $thisItem; { }
|
|---|