in reply to problems with flip flop

Hi,

Use push for not overwritte your array and adding elements to it.

Flags usually are used like this example:

while (...) { if (/xxyy/) # end of your block searched { $flag = 0; } if (/.../) { $flag = 1; } ... ... if ($flag == 1) { ... } }

I didn't understand your question completely, but I hope that helps

Regards,

Replies are listed 'Best First'.
Re^2: problems with flip flop
by bio25 (Initiate) on Aug 17, 2011 at 10:36 UTC

    Hey. I guess $flag==1 is what I'm searching for. But where in my script do I have to write it?