Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 browsing the Monastery: (18)
As of 2015-07-30 13:05 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 (271 votes), past polls