in reply to What is the easy way to comment out chunk of Perl Code

if(0) { ...chunk of Perl code you don't want to run... }

Replies are listed 'Best First'.
Re^2: What is the easy way to comment out chunk of Perl Code
by Perl Mouse (Chaplain) on Nov 20, 2005 at 17:07 UTC
    The problem with that is that perl is still going to try to compile what's inside the block, so it wouldn't work if you want to outcomment something that doesn't compile, or to outcomment an BEGIN/CHECK/INIT/END block - and it may not work as expected if you outcomment a method that also appears higher up in your inheritance tree.
    Perl --((8:>*