in reply to Using Pre-processor directive in Perl

you can use source filters for that, see perlfilter manual page... though most of the time it is a bad idea to do so. As Corion has already suggested, a better alternative is to use "if (Constant) {...}" constructions.
  • Comment on Re: Using Pre-processor directive in Perl