Hi All,
I have a bunch of scripts which calls a sub from a module, and that =
module in turn would call another sub from someone else and so on. =
Skimming through them is driving me crazy.
Is there a way i can trace the calling of the routines till N levels.
TIA,
-Sharad
Sharad Gupta wrote:
> Hi All,
>
> I have a bunch of scripts which calls a sub from a module, and that module in turn would call another sub from someone else and so on. Skimming through them is driving me crazy.
>
> Is there a way i can trace the calling of the routines till N levels.
>
>
> TIA,
> -Sharad
>
use Carp;
I think this too will not help you much since you dont seem to know what
routine is being called
But What is the bigger Idea, Why do you want to know which modules are
being called.
for eg. When I do a readdir(DIR) , and it gives me What I need , Why am
I bothered what modules does readdir use
Ram
----------------------------------------------------------------
NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134
MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying
http://netcore.co.in
Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com
BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com
Rajesh Jain's Weblog on Technology: http://www.emergic.org
----------------------------------------------------------------
> I have a bunch of scripts which calls a sub from a module, and that
> module in turn would call another sub from someone else and so on.
> Skimming through them is driving me crazy.
>
> Is there a way i can trace the calling of the routines till N levels.
I think you might like Devel::TraceSubs from CPAN and PPM.
Jenda
===== Jenda@no-spam === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery