Forum Discussion
Ah... You're a C programmer? Java perhaps? (I sympathise. I prefer C or perl myself. Hate Java). But I digress... This is TCL... The syntax for setting your variables is incorrect. You SET a variable to assign it a value. Not to declare it. So the
set htmlfile
doesn't need to be there (Unless you want toset it to some default value like
set htmlfile ""
Which gets rid of your first (And only reported so far) error. But the syntax where you set it to explicit values is also wrong for TCL. It should be something like
set htmlfile [lsearch -exact $default_pool.html]
But I'm unsure what you're trying to do there. leasrch searches a list... But $default_pool.html isn't a list... Reading the rest of the logic perhaps you just meant something like
set htmlfile "$default_pool.html"
Perhaps? As $htmlfile is supposed to be the name of a file to return the contents of?
H