Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: How do you move within an array using foreach?

by JaWi (Hermit)
on Oct 10, 2002 at 19:10 UTC ( [id://204295] : note . print w/replies, xml ) Need Help??


in reply to Re: Re: How do you move within an array using foreach?
in thread How do you move within an array using foreach?

As a matter of fact, I can (since about 15 minutes :-)! Summarizing from perlop:

The two dots work like a sort of flip-flop: if returns true if the first operation (the /foo/ part) evaluates `true' and stays true until the second operation evaluates to `true' (the /bar/ part). After that it returns false again.

Cheerio,

-- JaWi

"A chicken is an egg's way of producing more eggs."

  • Comment on Re^3: How do you move within an array using foreach?