in reply to Remarks

You can use the -P option, which runs the source through the 'C' preprocessor before submitting it to the Perl compiler. If you do this:
use strict; { print "This is a line of text\n"; #if 0 print "This will not print\n"; #endif }
only the first print statement will execute. Invoke with  perl -P myscript.pl --Chris