![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: Next from inner loop only works "most of the time"by BillKSmith (Monsignor) |
on May 18, 2021 at 13:22 UTC ( #11132710=note: print w/replies, xml ) | Need Help?? |
All three of of your loops use the same global variable ($_). Declare a lexical variable for at least two of them.
UPDATE: Thanks to jo37 (below),I now believe that the original code 'should' work.
Bill
In Section
Seekers of Perl Wisdom
|
|