in reply to Too much recursion
I'm not surprised. The question this begs to me is why the recursion. Something like this should suffice:
Now, what is troubling me is when or how your re initializing the vars $tot2 and $tot. That would change my looking logic ever so slightly if I knew that.| hand waving here. while(<$fd>){ next if $_ =~ m/^hostname /; print $_; $tot2++; } $tot++
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Too much recursion
by jrvd (Novice) on Jun 27, 2013 at 15:29 UTC | |
by mprentice (Sexton) on Jun 27, 2013 at 15:46 UTC | |
by jrvd (Novice) on Jun 27, 2013 at 15:54 UTC |