Re: string operation in expect script
- From: Uwe Klein <uwe_klein_habertwedt@xxxxxxxxxxx>
- Date: Sat, 26 Jun 2010 15:21:05 +0200
Sooraj S wrote:
Hi Klein,
Thanks for your help .... it worked...
i got it in another way also... do tell me if the code looks junk...
set len [string length $version]
for {set i 0} {$i < $len} {incr i} {
set s [string index $version $i]
append version_dot $s
puts "\nCheck$i : $version_dot"
if {$i <= $len-1} {
append version_dot "."
}
}
puts "Version : $version_dot"
you are effectively writing "c" code in tcl.
But tcl is not c.
uwe
.
- References:
- string operation in expect script
- From: Sooraj S
- Re: string operation in expect script
- From: Uwe Klein
- Re: string operation in expect script
- From: Sooraj S
- string operation in expect script
- Prev by Date: Re: Using A Variable Throughout My Application
- Next by Date: Re: Using A Variable Throughout My Application
- Previous by thread: Re: string operation in expect script
- Next by thread: Re: string operation in expect script
- Index(es):