in reply to Re: Doing "it" only once
in thread Doing "it" only once

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