Conditional compilation

Hi, From the chapter on internal workings of Perl in the Perl book, I think it should be possible to conditionally compile something based on a variable. I have the following real problem: my code has a lot of statements that conditionally print a tracing message. That is based on a command line parameter.