http://qs321.pair.com?node_id=781449


in reply to What is the best way to compare variables so that different types are non-equal?

To answer to points 1 and 4, AFAIK the operator 'eq' stringify both operands before comparing them. So 'X' eq 'Y' if and only if 'print X' and 'print Y' give the same string in output.

Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."

  • Comment on Re: What is the best way to compare variables so that different types are non-equal?