/usr/share/perl5/Devel/Symdump/Export.pm is in libdevel-symdump-perl 2.08-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | package Devel::Symdump::Export;
require Devel::Symdump;
require Exporter;
use Carp;
use strict;
use vars qw(@ISA @EXPORT_OK $AUTOLOAD);
@ISA=('Exporter');
@EXPORT_OK=(
'packages' ,
'scalars' ,
'arrays' ,
'hashes' ,
'functions' ,
'filehandles' ,
'dirhandles' ,
'ios' ,
'unknowns' ,
);
my %OK;
@OK{@EXPORT_OK}=(1) x @EXPORT_OK;
push @EXPORT_OK, "symdump";
# undocumented feature symdump() -- does it save enough typing?
sub symdump {
my @packages = @_;
Devel::Symdump->new(@packages)->as_string;
}
AUTOLOAD {
my @packages = @_;
(my $auto = $AUTOLOAD) =~ s/.*:://;
confess("Unknown function call $auto") unless $OK{$auto};
my @ret = Devel::Symdump->new->$auto(@packages);
return @ret;
}
1;
|