# New Ticket Created by Matt Diephouse
# Please include the string: [perl #38063]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=38063 >
In [expr], partcl tries to convert both operands of every binary
operator to numbers. This works for most ops, but some ops need to work
with both strings and numbers
== is one such op. The following displays the behavior:
mdiep~$ tclsh
% set a foo
foo
% set b foo
foo
% expr {$a == $b}
1
mdiep~$ partcl
% set a foo
foo
% set b foo
foo
% expr {$a == $b}
Not a number!
--
matt diephouse
http://matt.diephouse.com