RosettaCodeData/Task/Strip-comments-from-a-string/Tcl/strip-comments-from-a-string-2.tcl
2023-07-01 13:44:08 -04:00

5 lines
148 B
Tcl

# Multi-line string constant
set input "apples, pears # and bananas
apples, pears ; and bananas"
# Do the stripping
puts [stripLineComments $input]