You are pushing multiple references to the same hash. You need to create a new hash for each page. A small change that does that is to change
if($data =~ /^page$/) { push(@pagesArray,\%hash); }
to:
if($data =~ /^page$/) { push @pagesArray, {%hash}; %hash = (); }
which simply creates a copy of the hash.
In reply to Re: XML Parser issue
by GrandFather
in thread XML Parser issue
by siva kumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |