use strict; no strict 'refs'; my $pkg = '006CONFC'; eval "require $pkg" or warn $@; my $ref = *{${ $pkg . '::'}{'post'}}{CODE}; $ref or exit(0); $ref->(); #### package 006CONFC; require Exporter; our @ISA = qw(Exporter); our @EXPORT = qw(post); sub post { print "MADE IT\n"; } 1;