【发布时间】:2016-11-09 20:38:09
【问题描述】:
有没有机会让 TCL 数组中的哈希键不区分大小写?
显然这不起作用:
% set hash(aBc) Winner
Winner
% puts $hash(abc)
can't read "hash(abc)": no such element in array
%
是的,我可以使用 tolow
% set hash([string tolower dEf]) Loser
Loser
% puts $hash(def)
Loser
%
只是想知道在我的哈希上全局运行的解决方案是否有微弱的机会?
谢谢, 格特
【问题讨论】: