in reply to Commenting out script in Perl like in C++

`perldoc comment' yields
Found in C:\Perl\lib\pod\perlfaq7.pod
  How can I comment out a large block of perl code?
            Use embedded POD to discard it:

                # program is here

                =for nobody
                This paragraph is commented out

                # program continues

                =begin comment text

                all of this stuff

                here will be ignored
                by everyone

                =end comment text

                =cut

            This can't go just anywhere. You have to put a pod directive
            where the parser is expecting a new statement, not just in the
            middle of an expression or some other arbitrary yacc grammar
            production.
comments yields C style comments?.
perl comments yields Better ways to make multi-line comments in Perl?.

You might wanna also read the PerlMonks FAQ and this tutorial -- ain't perlmonks great ;)

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

  • Comment on Re: Commenting out script in Perl like in C++