Hello,

I just encountered a strange error, although I don't think it's
necessarily a bug.  In a module I wrote "=head" instead of "=head1"
at the start of my pod and then under-PAR (and only under PAR) got
"did not return a true value" warning.  Looking at the file in the
zip I could see that the =head had hidden the code, including
the return value.

Here's a cut down example, note the "=head":


package A;

=head

=head1

=cut

1;
__DATA__



C:\>perl -e "use A; warn 123"
123 at -e line 1.

C:\>pp -e "use A; warn 123"

C:\>a.exe
A.pm did not return a true value at script/ppKoTy7.pl line 1.
BEGIN failed--compilation aborted at script/ppKoTy7.pl line 1.


C:\>unzip -p a.exe A.pm
#line 1 "A.pm"
package A;

=head

#line 8

1;


So the =head hides the rest.

Brad

--
 Intelligence is nothing more than discussing things with others.
 Limitless wisdom comes of this. -- Hagakure

Reply via email to