Skip to content

Commit

Permalink
perldiag: Wrap long lines
Browse files Browse the repository at this point in the history
to avoid splain output like this on 80-column terminals:

rewinddir() attempted on invalid dirhandle foo at -e line 1 (#1)
    (W io) The dirhandle you tried to do a rewinddir() on is either closed or no
t
    really a dirhandle.  Check your control flow.
  • Loading branch information
Father Chrysostomos committed Feb 9, 2014
1 parent ea9d9eb commit 1b303a7
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pod/perldiag.pod
Original file line number Diff line number Diff line change
Expand Up @@ -4738,8 +4738,8 @@ always come last, to avoid ambiguity with subsequent unary operators.

=item rewinddir() attempted on invalid dirhandle %s

(W io) The dirhandle you tried to do a rewinddir() on is either closed or not
really a dirhandle. Check your control flow.
(W io) The dirhandle you tried to do a rewinddir() on is either closed
or not really a dirhandle. Check your control flow.

=item Scalars leaked: %d

Expand Down Expand Up @@ -5901,8 +5901,9 @@ subroutine.
%d

(F) The Perl parser has no idea what to do with the specified character
in your Perl script (or eval) near the specified column. Perhaps you tried
to run a compressed script, a binary program, or a directory as a Perl program.
in your Perl script (or eval) near the specified column. Perhaps you
tried to run a compressed script, a binary program, or a directory as
a Perl program.

=item Unrecognized escape \%c in character class in regex; marked by
S<<-- HERE> in m/%s/
Expand Down Expand Up @@ -6246,7 +6247,8 @@ is deprecated. See L<perlvar/"$[">.
=item Use of bare << to mean <<"" is deprecated

(D deprecated) You are now encouraged to use the explicitly quoted
form if you wish to use an empty line as the terminator of the here-document.
form if you wish to use an empty line as the terminator of the
here-document.

=item Use of chdir('') or chdir(undef) as chdir() deprecated

Expand Down Expand Up @@ -6541,8 +6543,8 @@ gone out of scope, for example,
}
f()->();

Here, when the '$a' in the eval is being compiled, f() is not currently being
executed, so its $a is not available for capture.
Here, when the '$a' in the eval is being compiled, f() is not currently
being executed, so its $a is not available for capture.

=item Variable "%s" is not imported%s

Expand Down

0 comments on commit 1b303a7

Please sign in to comment.