set fldSep [string index $msg 3]
set subSep [string index $msg 4]
switch -exact — $character {
$fldSep –
$subSep {to this stuff}
}
The variables are being set to the correct values, it just will not go in.
If I hard code it, it does work
switch -exact — $character
| –
^ {do this stuff}
}
What am I doing wrong? I am sure it is simple but I am stumped.
Thanks!