Flags aren't always a bad thing.
They are if you choose a terrible name :)
while ( ... ) { if ( !$done_whatever && check_whatever()) { do_whatever(); $done_whatever = 1; } }
There, I feel much better now.
• another intruder with the mooring in the heart of the Perl
In reply to Re^2: Doing "it" only once
by grinder
in thread Doing "it" only once
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |