Bug#538059: [PATCH] `"""' on man page

Russ Allbery rra at debian.org
Wed Jul 22 19:13:07 UTC 2009


jidanni at jidanni.org writes:

> Please report/apply this upstream for me. I can't. They locked me out.
>
> --- /usr/share/perl/5.10.0/pod/perlfunc.pod	2009-07-09 05:47:14.000000000 +0800
> +++ /tmp/perlfunc.pod	2009-07-23 02:22:59.314766616 +0800
> @@ -741,8 +741,8 @@
>  number of characters removed from all its arguments.  It's often used to
>  remove the newline from the end of an input record when you're worried
>  that the final record may be missing its newline.  When in paragraph
> -mode (C<$/ = "">), it removes all trailing newlines from the string.
> -When in slurp mode (C<$/ = undef>) or fixed-length record mode (C<$/> is
> +mode ($/ = ""), it removes all trailing newlines from the string.
> +When in slurp mode ($/ = undef) or fixed-length record mode (C<$/> is
>  a reference to an integer or the like, see L<perlvar>) chomp() won't
>  remove anything.
>  If VARIABLE is omitted, it chomps C<$_>.  Example:

This specific change is wrong.  However, I wonder if pod2man should
suppress the surrounding "" if the C<> material starts or ends with a
double-quote.  (They're already suppressed if the whole string is
surrounded with double-quotes.)

-- 
Russ Allbery (rra at debian.org)               <http://www.eyrie.org/~eagle/>






More information about the Perl-maintainers mailing list