in reply to Re: Array condition always true
in thread Array condition always true

How to free it its a scalar variable instead of an array meaning if @header_present is $header_present

Will $header_present=" "; work?

Replies are listed 'Best First'.
Re^3: Array condition always true
by GrandFather (Saint) on Mar 20, 2011 at 19:42 UTC

    What do you want to achieve? $header_present = ''; will set $header_present to an empty string. $header_present = undef; will set $header_present to undef which is the uninitialised state. The one you need depends on code you've not shown us.

    True laziness is hard work