[Chicago-talk] Looking through the symbol table?

Andy Lester andy at petdance.com
Fri Sep 17 10:38:25 CDT 2004


On Fri, Sep 17, 2004 at 10:08:42AM -0500, Andy_Bach at wiwb.uscourts.gov (Andy_Bach at wiwb.uscourts.gov) wrote:
> Somebody's asked me:
> Is there a command in perl (or an easy way) that identifies subroutine
> names that become available to the parent script after a "require"
> or "use" statement?

Sure, look at %main::

As in

use Data::Dumper;
print Dumper( \%main:: );


-- 
Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance


More information about the Chicago-talk mailing list