F
fake
From the FAQ:
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.
However, only a "1" is printed from this program:
#!c:/perl/bin/perl
print "\n 1";
=begin comment text
print "\n 2";
=end comment text
print "\n 3";
Hence the multiline comments as explained in the perldoc do not work.
That is all...
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.
However, only a "1" is printed from this program:
#!c:/perl/bin/perl
print "\n 1";
=begin comment text
print "\n 2";
=end comment text
print "\n 3";
Hence the multiline comments as explained in the perldoc do not work.
That is all...