- or download this
$ cat pm_1185726_heredoc_pod.pl
my $str = <<=cut;
...
=cut
$
- or download this
$ perl -MO=Deparse pm_1185726_heredoc_pod.pl
Use of bare << to mean <<"" is deprecated. Its use will be fatal in Pe
+rl 5.28 at pm_1185726_heredoc_pod.pl line 1.
...
pm_1185726_heredoc_pod.pl had compilation errors.
my $str = "" = 'cut';
$
- or download this
$ perl -MO=Deparse pm_1185726_heredoc_pod.pl
my $str = "\n=head2 Some documentation\n\n";
pm_1185726_heredoc_pod.pl syntax OK
- or download this
$ cat pm_1185726_heredoc_pod.pl
our $VERSION = '1.234';
...
=cut
print $str;
- or download this
$ perldoc pm_1185726_heredoc_pod.pl
- or download this
$ perl -wMstrict pm_1185726_heredoc_pod.pl
=head2 Some documentation
Doco for version: 1.234