RosettaCodeData/Task/Strip-comments-from-a-string/PL-I/strip-comments-from-a-string.pli

4 lines
112 B
Text
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
k = search(text, '#;');
if k = 0 then put skip list (text);
else put skip list (substr(text, 1, k-1));