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


in reply to Re: [Golfing] Uncommenting a block
in thread [Golfing] Uncommenting a block

Thanks, interesting, but my (shortest) approach is not discussed (or only in more verbose versions)

From what I saw nesting and conditional commenting seem to be of special interest... which can be done with this solution:

if ($habibi) { print $habibi; <<'' if (0); #forget the following print " talks often much cr*p";<P> $h++ }

Warning about whitespaces in "empty" lines ending a heredoc seem to be a good application for code filters. (...finally)

Cheers Rolf