in reply to Re^2: Resetting variables
in thread Resetting variables

Oops, our posts have crossed in the mail (so to speak).

Try either

if ($goodguesses && ($whatever =~ /[$goodguesses]/) {...}
or undefine $goodguesses
$goodguesses = undef;

see previous post (just before your last one, for the differences between 'false' and 'defined'

Replies are listed 'Best First'.
Re^4: Resetting variables
by yacoubean (Scribe) on Dec 21, 2004 at 22:17 UTC
    AAAhhhh!! You set me straight. ;) Using your clarifications, It now works on the first and second passes! Thanks a bunch.