> >> [expr {($hostsNoticed > 1) ? "s" : ""}]
> PdS> I wouldn't write that. I'd write:
> PdS> [lindex [list "" s] [expr "$hostsNoticed > 1"]]
> *blink* that's an improvement? personally, i had no problem with the
> other way :-)
Sure. Less potential for quoting problems.
> any particular reason you write [list "" s] instead of {"" s} or {\ s}?
I tend to use [list] to create lists when the standard syntax might be
confusing.
> how about [if {$hostsNoticed - 1} {format s}]
> [lindex s [expr !($hostsNoticed - 1)]]
Obscure, particularly using - instead of !=.
-- Peter da Silva `-_-' Network Management Technology Incorporated 'U` 1601 Industrial Blvd. Sugar Land, TX 77478 USA +1 713 274 5180 "Har du kramat din varg idag?"