This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Expand tabs in diagnostics.pm
authorFather Chrysostomos <sprout@cpan.org>
Sat, 8 Feb 2014 21:22:01 +0000 (13:22 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 9 Feb 2014 01:34:25 +0000 (17:34 -0800)
commit5604c7905b7cd780d72f15bc73dae69d1d1e944b
treecdc4d4a485dad3a6ecd2b25b44c0737f23e88445
parentadf7680562287218c9f721ec3eb5028bc143e31b
Expand tabs in diagnostics.pm

Otherwise pod like this:

The second situation is caused by an eval accessing a lexical subroutine
that has gone out of scope, for example,

    sub f {
my sub a {...}
sub { eval '\&a' }
    }
    f()->();

is turned into this:

    The second situation is caused by an eval accessing a variable that has
    gone out of scope, for example,

        sub f {
     my $a;
     sub { eval '$a' }
        }
        f()->();

instead of this:

    The second situation is caused by an eval accessing a variable that has
    gone out of scope, for example,

        sub f {
            my $a;
            sub { eval '$a' }
        }
        f()->();

I don’t know how to test this without literally copying and pasting
parts of diagnostics.pm into diagnostics.t.  But I have tested it man-
ually and it works.
lib/diagnostics.pm