Yeah Troy, that is my favorite as well. It is also nice to keep in mind that you can use optional arguments to a TCL proc like this:
proc SendEmailMessage { mailargs {debug “0”} } {
if {$debug} {
echo “I am in debug mode”
}
That way you can send all of your information in via the keyed list variable and add an additional variable to indicate whether you are in debug mode..
Just my $.02