in reply to How can I re-program the exists function?

I am not sure about what exactly you are trying to achieve. However, your statement
According to perldoc, "exists" receives and "EXPR".
seems only half correct.
See expr.
It says
Note that the EXPR can be arbitrarily complicated as long as the final operation is a hash or array key lookup or subroutine name
  • Comment on Re: How can I re-program the exists function?