开发者

How can I dump internal files of Perl?

开发者 https://www.devze.com 2023-03-20 08:45 出处:网络
print Dumper \\%main::; tells me there\'s such file: \'_<perlmain.c\' => *{\'::_<perlmain.c\'},
print Dumper \%main::;

tells me there's such file:

      '_<perlmain.c' => *{'::_<perlmain.c'},

How can I dump it?

I tried these ways but none work:

my $typeglob = *{'::_<perlmain.c'};
print "@$typeglob\n";

print @{'_<DynaLoader开发者_Python百科.c'};
my @arr = @{'::_<xsutils.c'};
print "@arr";


You can't directly extract the source for these files if the code itself is not compiled in or provided as a module. To read these files, you would need to fetch the Perl source bundle from CPAN.

You can, however, extract the miniperl which is used part of the creation of the core Perl, but is missing core module auto-load data; read the perldoc or manpage for ExtUtils::Miniperl for details.

0

精彩评论

暂无评论...
验证码 换一张
取 消