PERL BEGINNERS 45 TRACING SUBS
Subject: Tracing Subs
Date: Fri, 8 Aug 2003 16:54:36 -0700

From: Sharad.Gupta@no-spam (Sharad Gupta)

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

Date: Sat, 09 Aug 2003 13:11:27 +0530

Subject: Re: Tracing Subs









From: ramprasad@no-spam (Ramprasad)
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 ----------------------------------------------------------------


Date: Sat, 09 Aug 2003 18:40:56 +0200

Subject: Re: Tracing Subs
From: Jenda@no-spam (Jenda Krynicky)
From: "Gupta, Sharad" (Sharad.Gupta@no-spam)
> 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