http://www.perlmonks.org?node_id=1013472

eskiphill has asked for the wisdom of the Perl Monks concerning the following question:

I have a line that looks like this:
$var ~= s/<!--(.|\n)*-->//g;
My interpretation of this would be to delete any value that looks like < !-- [anything including an eol]--> otherwise pass it on. This makes sense as this is an old roll your own template system. Am I missing anything?