Help for this page

Select Code to Download


  1. or download this
    $ cat pm_1185726_heredoc_pod.pl
    my $str = <<=cut;
    ...
    
    =cut
    $
    
  2. 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';
    $
    
  3. 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
    
  4. or download this
    $ cat pm_1185726_heredoc_pod.pl
    our $VERSION = '1.234';
    ...
    =cut
    
    print $str;
    
  5. or download this
    $ perldoc pm_1185726_heredoc_pod.pl
    
  6. or download this
    $ perl -wMstrict pm_1185726_heredoc_pod.pl
    
    =head2 Some documentation
    
    Doco for version: 1.234