in reply to C style comments?

No wait! There is nothing wrong with an if(0){} block! Perl recognizes code that can never be executed, may print a warning and scrap the code (i.e. not load it).

Replies are listed 'Best First'.
(Ovid) RE(2): C style comments?
by Ovid (Cardinal) on Aug 08, 2000 at 21:50 UTC
    Actually, there is something wrong with an if(0){} block: maintainability. As we work on programs and then come back to them months later, we often find that some slick hack that was obvious when we wrote it is difficult to understand when we come back. Further, if you work for a company where others have to maintain your code, they're not going to be too happy about seeing things like if(0){} scattered all over the place. Particularly for inexperienced programmers, it's not exactly intuitive that you'd using that to create a non-executing block.

    Cheers,
    Ovid