I think you need to use splice instead of delete to modify the array. splice @{$data->{page}} $dat 1 should do what you want (untested).

In reply to Re: array/hash question with XML simple by weismat
in thread array/hash question with XML simple by TienLung

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":