Tech list <tech_l...@womenshealth.com> asked:
> Let's say I have a module XYZ with a sub in it call ABC.  I'd like to
> print the source code of XYZ::ABC.
> 
> My reason for this is I accidentally overwrote a module with an older
> version, but I still have httpd running which has it loaded in memory.

You can't print the "source code" since it's gone at that point. All that 
remains is the bytecode representation of that module. You can poke around in 
that using the B:: group of modules, like 
http://search.cpan.org/~jesse/perl-5.12.1/ext/B/B.pm. Beware, this is not for 
the faint of heart.

HTH,
Thomas

PS: Rule #1 of system administration and programming: _always_ make a backup.


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to