No such thing as a small change | |
PerlMonks |
Using next inappropriately inside a subby Sandy (Curate) |
on Mar 29, 2006 at 01:37 UTC ( [id://539846]=perlmeditation: print w/replies, xml ) | Need Help?? |
Due to my own bad coding, I have discovered another Gotcha (or maybe a 'got-me'?) that jumped up and bit me. Of course, if I had had warnings on... it would have been simpler to see what was going on, ... but then on the other hand, I would not have seen this fun stuff:
gives:
Perl is so cool, but so dangerous without warnings! Needless to say, after some refactoring, my 'next' was in a different module than my loop, and I couldn't figure out why bits of code were not being executed as expected.
Back to
Meditations
|
|