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
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
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
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]
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
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
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/
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