in reply to Array condition always true

What next time? The code as shown only executes once. The block controlled by if(@header_present) will execute if anything were pushed into @header_present in the previous line and that will never happen with the code shown because @headers is empty.

In this question and a previous question you posted it seems there is a larger context that we are not being shown that is strongly related to the problems you are having. For us to be able to help you need to isolate the problems into a small run-able script that shows the issue you need to fix and show that to us. Describing the larger context will probably help too. See I know what I mean. Why don't you? for ideas on how to create such a script.

True laziness is hard work

Replies are listed 'Best First'.
Re^2: Array condition always true
by Anonymous Monk on Mar 20, 2011 at 09:56 UTC

    Sorry abt the confusion.I figured out the prob:-)