in reply to (jeffa) Re: searching all directories with perl
in thread searching all directories with perl
Recursion is a fairly advanced computer science technique that involves having a subroutine call itself. It can get quite tricky.
Huh? Fairly advanced? That's one of the first things you hear about in CS, I think. While I totally agree with the advice to use File::Find, I don't see a reason for advocacy against recursion in general. It can be a very elegant solution to solve problems in a simple and understandable way.
Of course recursion, if used wrongly, can lead to endless loops etc. But that's not an argument against using it. It's an argument in favour of learning to use recursion the right way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) 3Re: searching all directories with perl
by jeffa (Bishop) on May 05, 2003 at 13:53 UTC | |
by Aristotle (Chancellor) on May 05, 2003 at 16:11 UTC |