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.
精彩评论