Reputation: 205
I am getting the answer as 1 I tried this :
set a "Amazon"
set b [split $a]
set c [llength $b]
puts "$c"
Upvotes: 0
Views: 1288
Reputation: 40733
I believe you can use string length
for that:
set a "Amazon"
set lengthOfA [string length $a]
puts "Length is: $lengthOfA"
Upvotes: 5