I'm creating variables with the content of a file.
The working part:
Code: Select all
foreach templine [split $data "\n"] {
set faq_line [split $templine "="]
regsub -all \# [lindex $faq_line 1] "\037" lex_text
set lexik([string tolower [lindex $faq_line 0]]) $lex_text
}
But... the following test always match:
Code: Select all
set looking [string tolower [lindex [split $text] 0]]
if {[info exists $::lexik($looking)]} {
Can someone tell me where is the trouble plz?
Thx by advance