Skip to content

Commit 1b303a7

Browse files
author
Father Chrysostomos
committed
perldiag: Wrap long lines
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.
1 parent ea9d9eb commit 1b303a7

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

pod/perldiag.pod

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4738,8 +4738,8 @@ always come last, to avoid ambiguity with subsequent unary operators.
47384738

47394739
=item rewinddir() attempted on invalid dirhandle %s
47404740

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

47444744
=item Scalars leaked: %d
47454745

@@ -5901,8 +5901,9 @@ subroutine.
59015901
%d
59025902

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

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

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

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

@@ -6541,8 +6543,8 @@ gone out of scope, for example,
65416543
}
65426544
f()->();
65436545

6544-
Here, when the '$a' in the eval is being compiled, f() is not currently being
6545-
executed, so its $a is not available for capture.
6546+
Here, when the '$a' in the eval is being compiled, f() is not currently
6547+
being executed, so its $a is not available for capture.
65466548

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

0 commit comments

Comments
 (0)