kripa0 has asked for the wisdom of the Perl Monks concerning the following question:
Are there any call graph tools for perl scripts?
I am looking to find out callers and callees of functions in my code. I am also trying to ensure that the code that I write does not have any undefined functions. I am using 5.6.0 on Solaris.
As far as I know, undefined functions don't trigger any warnings at compile- or run-time, until there is an attempt at run-time to invoke the function.
The following code will never trigger any messages, even though there is no function called &grabels_law_violated.
|| #!/usr/bin/env perl || use 5.006; || use warnings; || use strict; || (2 == 3) ? &grabels_law_violated() : print "Whew!\n"; || __END__
Thanks in advance.
peace,
--{kr.pA}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Any call graph tools for perl scripts?
by simonm (Vicar) on Jul 17, 2003 at 16:31 UTC | |
|
Re: Any call graph tools for perl scripts?
by halley (Prior) on Jul 17, 2003 at 16:35 UTC | |
by simonm (Vicar) on Jul 17, 2003 at 16:51 UTC | |
by RockyMtn (Novice) on Sep 02, 2015 at 20:38 UTC | |
|
Re: Any call graph tools for perl scripts?
by shemp (Deacon) on Jul 17, 2003 at 16:43 UTC |