This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldiag: Rewrap an entry for better splain output
authorFather Chrysostomos <sprout@cpan.org>
Sat, 13 Aug 2016 21:30:56 +0000 (14:30 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 13 Aug 2016 21:31:39 +0000 (14:31 -0700)
commit4c9eaea68a0c4f05bc7ac8b235c83095f53f29d1
treeeb0c2c893fe2515cc0d8a93dc8a6326057cfe404
parentdca6023ddb16b8490f5bb9102a66b1515159ebf5
perldiag: Rewrap an entry for better splain output

In an eighty-column terminal, this is what it looked like before
this commit:

$ ./perl -Ilib -Mdiagnostics -E 'state ($x)=1'
Initialization of state variables in list context currently forbidden at -e line 1, at EOF
Execution of -e aborted due to compilation errors (#1)
    (F) state only permits initializing a single scalar variable, in scalar
    context. So state $a = 42 is allowed, but not state ($a) = 42. To apply
    state semantics to a hash or array, store a hash or array reference in a sca
lar
    variable.
pod/perldiag.pod