RosettaCodeData/Task/Strip-comments-from-a-string/Tcl/strip-comments-from-a-string-2.tcl

6 lines
148 B
Tcl
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
# Multi-line string constant
set input "apples, pears # and bananas
apples, pears ; and bananas"
# Do the stripping
puts [stripLineComments $input]