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

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