in reply to variable sees it, array doesn't - stumped!

You are using a numeric comparison (!=) to compare two stings that evaluate to 0 numerically. You should be using string comparison (ne). See perlop

Replies are listed 'Best First'.
Re^2: variable sees it, array doesn't - stumped!
by shrdlu (Novice) on Dec 31, 2008 at 17:07 UTC
    Thanks for the tip, and also for the link, most useful.