
August 29th, 2000, 05:28 PM
|
|
Contributing User
|
|
Join Date: Aug 2000
Posts: 81
Time spent in forums: < 1 sec
Reputation Power: 13
|
|
|
There isn't 'officially' a multiline comment as in Java. However, you can kludge it by making the interpreter think that what follows is POD documentation (imagine the following as equivalent to in Java putting /** */ around everything rather than /* */). Before the block you want commented, put:
=pod
(first chars on a newline)
and after the block you want commented, again as first chars on a newline, put
=cut
That should do the trick for you. Alternatively, if you can find an editor that 'understands' Perl (e.g. emacs, or on Windows something like UltraEdit or EditPlus) you can get it to comment out a block by selecting a block and telling it to comment out, or insert a certain character at the start of every line (a # in this case), or whatever other way you can persuade it to do commenting.
|