error called to early to check prototype using recursive function

2005-01-28 Thread S.A. Birl
2 problems, maybe related. 1) My recursive program is generating a called to early to check prototype error. Ive Googled for answers but cannot find a solution 2) When this executes, it traverses 8 directories in F:\\Inetpub\\Develop then stops and traverses 8 directories in

Re: error called to early to check prototype using recursive function

2005-01-28 Thread John W. Krahn
S.A. Birl wrote: 2 problems, maybe related. 1) My recursive program is generating a called to early to check prototype error. Ive Googled for answers but cannot find a solution That could be because you spelled too wrong. In any case, you should have the description of that warning message

RE: Recursive function

2004-11-23 Thread Eaton Elyahu Doron
PROTECTED] Subject: Recursive function Hi all, Why is the following won't work recursively ? The purpose is simple, search directory inside $depth levels for directories. But since the stop recursive is when depth is 0, after the search starts the first directory it stops when it reaches

Re: Recursive function

2004-11-23 Thread Dave Gray
I know I can use the find.pm. But, I'd like to know why the recoursive I did is wrong. There are no debug print statements in your code. There are also a lot of 'next' statements, which always make me suspicious. See comments in chopped-up code below. Good luck, Dave == Start of code [snip]

RE: Spam:RE: Recursive function

2004-11-23 Thread Michael Kraus
G'day... These lines look wrong (but I may be wrong): $exit_status = `dir` ; print \nCurrently in - \n$exit_status\n==\nDepth ($depth)\n ; Shouldn't that be: $exit_status = `pwd`; Also, check out the glob function - it'll

RE: Recursive function

2004-11-21 Thread Eaton Elyahu Doron
PROTECTED] Subject: Re: Recursive function The purpose is simple, search directory inside $depth levels for directories. No need to reinvent the wheel: http://search.cpan.org/~nwclark/perl-5.8.5/lib/File/Find.pm

Re: Recursive function

2004-11-17 Thread Dave Gray
The purpose is simple, search directory inside $depth levels for directories. No need to reinvent the wheel: http://search.cpan.org/~nwclark/perl-5.8.5/lib/File/Find.pm -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Recursive function

2004-11-16 Thread Eaton Elyahu Doron
Hi all, Why is the following won't work recursively ? The purpose is simple, search directory inside $depth levels for directories. But since the stop recursive is when depth is 0, after the search starts the first directory it stops when it reaches the level in that first directory and