Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^3: array within an array

by cesear (Novice)
on Oct 07, 2011 at 14:16 UTC ( #930193=note: print w/replies, xml ) Need Help??

in reply to Re^2: array within an array
in thread array within an array

This code is almost what I need, but using a count will not work (actually tried that) :). I only what the elements in @charges removed and replaced with chx if all the keys in %bundle1 are found. So that last element ch4 was replaced and it should not. This is where I am stuck.

Replies are listed 'Best First'.
Re^4: array within an array
by aartist (Monk) on Oct 07, 2011 at 15:01 UTC
    You need to see if you can find all the elements before you start to replace. So you need to hold them in memory somewhere. If you reach to end of the array before finding them, just put them as it is on their respective locations.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930193]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2018-04-19 20:04 GMT
Find Nodes?
    Voting Booth?