eskiphill has asked for the wisdom of the Perl Monks concerning the following question:
I have a line that looks like this:
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?$var ~= s/<!--(.|\n)*-->//g;
Back to
Seekers of Perl Wisdom