Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: array/hash question with XML simple

by weismat (Friar)
on Mar 13, 2009 at 13:43 UTC ( #750412=note: print w/ replies, xml ) Need Help??


in reply to array/hash question with XML simple

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).


Comment on Re: array/hash question with XML simple
Re^2: array/hash question with XML simple
by TienLung (Acolyte) on Mar 13, 2009 at 14:11 UTC
    Thanks for this, I had not ever used the splice method, but after now reading about it, it does indeed sound useful. Many thanks for your help

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://750412]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (14)
As of 2015-07-06 14:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (75 votes), past polls