File: test80-recurs.p

package info (click to toggle)
libdevel-nytprof-perl 4.04-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,124 kB
  • ctags: 1,330
  • sloc: perl: 4,392; ansic: 92; makefile: 19
file content (8 lines) | stat: -rw-r--r-- 156 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
sub recurs {
    my $depth = shift;
    select(undef, undef, undef, 0.3);
    recurs($depth-1) if $depth > 1;
}

recurs(3); # recurs gets called twice