Some explanation of what you ARE getting would be very helpful. Other than that you obviously have the push commented out, so it wont work. If it isn't commented out though it looks like you are pushing the _same_ reference to $rec over and over. Move the my $ref; down into the next loop and it should work as expected. I'm not sure why you are looping over the keys though. It looks like you could just do hash lookups instead of the for my $item (keys %vals) loop.
$rec->{app} = $vals{DisplayName}[2] if ( exists $vals{DisplayName}); $rec->{path} = $vals{InstallSource}[2] if ( exists $vals{InstallSource +});
In reply to Re: capturing entries from the Registry
by eric256
in thread capturing entries from the Registry
by blackadder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |