develooper Front page | perl.perl5.porters | Postings from February 2001

Re: [ID 20010130.009] block comment

From:
Simon Cozens
Date:
February 6, 2001 07:30
Subject:
Re: [ID 20010130.009] block comment
Message ID:
20010206153020.A18975@pembro26.pmb.ox.ac.uk
On Tue, Jan 30, 2001 at 04:03:26PM -0500, Stephen P. Potter wrote:
> | =block comment
> | #!/usr/local/bin/perl
> | $junk = 0;
> | $j2 = 0;
> | =cut
> 
> "=block" is not valid pod.  Even so, it does look like you have uncovered a
> bug, because the =pod/=cut pair, which should work, does the same thing.

I remember noticing that this would probably happen on my travels through
toke.c; I think it's something like this: (From memory)

The POD-skipping mechanism is the same as the perl -x text-skipping mechanism,
and hence #!/.*/perl interrupts both. POD skipping shouldn't set
Perl_doextract, but should use a different variable.

-- 
The complex-type shall be a simple-type.  ISO 10206:1991 (Extended Pascal)



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About