Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

extract the function call chains of specific length

by dwslovedh (Novice)
on Jul 11, 2013 at 14:48 UTC ( #1043743=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    f1 calls (f2)
    f2 calls (f3,f4)
    f3 calls nothing
    f4 calls f5
    f5 calls nothing
    
  2. or download this
    f1->f2->f3
    f1->f2->f4
    f2->f4->f5
    
  3. or download this
    key value
    f1  f2
    ...
    f3
    f4  f5
    f5
    
  4. or download this
    my %calls; #has all the function call information
    my $length = 3; #the length of function chains
    ...
        }
      }
    }