Home: Perl Programming Help: Advanced:
Is there a cflow for perl?



akochis
New User

Mar 7, 2006, 2:55 PM


Views: 2741
Is there a cflow for perl?

Here is my problem. I have a lot of perl modules to understand. I can't execute them for trace results. So I am looking for a utility that works like GNU cflow works for C.

An example of cflow output is:



Code
$ cflow animal.c 
1 main: int(), <animal.c 15>
2 printf: <>
3 yes: int(), <animal.c 55>
4 gensis: int(), <animal.c 28>
5 make_node: struct*(), <animal.c 46>
6 malloc: <>
7 strcpy: <>
8 endgame: int(), <animal.c 63>
9 printf: 2
10 yes: 3
11 gets: <>
12 make_node: 5
13 guess: int(), <animal.c 33>
14 printf: 2
15 yes: 3
16 endgame: 8
17 guess: 13


Code