This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
deparse-skips.txt: add Archive-Tar/t/03_file.t
authorDavid Mitchell <davem@iabyn.com>
Fri, 24 Feb 2017 17:37:31 +0000 (17:37 +0000)
committerDavid Mitchell <davem@iabyn.com>
Mon, 5 Jun 2017 11:52:18 +0000 (12:52 +0100)
commitdaeb52b8cb1067f5896a0c93b1afd12a85d2c21e
tree066249caecc58c28889bf3534dd125ebabac3aed
parentf19f3753c9ff41b99bd94699c215943a1b59d2ef
deparse-skips.txt: add Archive-Tar/t/03_file.t

This test script uses constant anon subs, which get deparsed back
into real subs and fail; e.g.

    use strict;
    { my $x; use constant FOO => sub { $x = 1 }; }
    FOO->();

which gets deparsed as

    use strict;
    { my $x; use constant FOO => sub { $x = 1 }; }
    sub { $x = 1 }->();

and croaks with 'Global symbol "$x" requires explicit package name'

Since the name of the constant ('FOO') has been folded away, there's
no way to correctly deparse this unless more info is saved in the op tree.
Porting/deparse-skips.txt