in reply to Re: hash question
in thread hash question

these are what i thought might work, but do not!

Replies are listed 'Best First'.
Re^3: hash question
by ikegami (Patriarch) on Nov 21, 2004 at 21:35 UTC
    oops, fixed.
      no luck on this one either!
        Then you have problems with your input, cause I tested my update before submitting it.
        %a = ( A => 1, ); print 'A' if not exists $a{'A'}; # prints nothing print 'B' if not exists $a{'B'}; # prints B

        Try use warnings; to see if you're trying to print undef, and like pg suggested, make sure the // actually matched. You could also give us a sample of IN and IN2 which doesn't provide the expected output.