Subject: | Policy suggestion: complain about __END__ used for here-to documents. |
I do not think it's a good style to use __END__ as the terminator for
here-to documents. For instance, the following code passes perlcritic OK:
------------------------
use strict;
use warnings;
sub dude {
print <<__END__;
dude!
__END__
}
dude();
exit;
-----------------------
And there are also real-life examples:
http://www.google.com/codesearch?as_q=%3C%3C+*%5B%27%22%5D%3F__END__&btnG=Search+Code&hl=en&as_lang=perl&as_license_restrict=i&as_license=&as_package=&as_filename=&as_case=
(Another reason is that we probably want to make life easier for other
tools that parse Perl code that are not perl, such as ctags.)