in reply to Removing multiple trailing comment lines from a string
$s =~ s/\n;.*\Z// for 1..3;
call it version 1.0
destroy all evidence that I tried
pay someone else to do it for me
have some cake
try two more times so my failure is statistically significant
Results (142 votes). Check out past polls.