in reply to Re: Playing with non-localized $_ in nested loops.
in thread Playing with non-localized $_ in nested loops.
And if I change a foreach (...) to a while (...), the magic of $_ disappears, and I might introduce bugs similar to gaal's example.
Sometimes using explicit variables helps you find logic errors too.
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
|---|