Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Nested Foreach Loop skipping every other element??

by vinoth.ree (Prior)
on Feb 19, 2014 at 17:00 UTC ( #1075494=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Nested Foreach Loop skipping every other element??
in thread Nested Foreach Loop skipping every other element??

Instead doing splice on the same @DIR which you used in the foreach, you can have a copy of @DIR and you can do splice on that array. For Ex. @DIR will be used in foreach, @DIR_COPY can be used in splice.


All is well


Comment on Re^3: Nested Foreach Loop skipping every other element??
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2015-08-30 19:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (350 votes), past polls