in reply to Converting HOH to a XML not working

foreach my $key ( %${hashref} ){
You should use keys:
foreach my $key ( keys %${hashref} ){ print $hashref->{$key}->{'ProductName'};

use strict and warnings catches such bugs.

Replies are listed 'Best First'.
Re^2: Converting HOH to a XML not working
by sriram83.life (Acolyte) on Mar 14, 2014 at 18:40 UTC
    Hi Toolic,
    Actually it is a printing mistake.I gave keys %${hashref} only.I wrote exactly the same code you have specified,but still it is printing blank.
    Sriram