---- Original Message ----
From: Randal L. Schwartz <[EMAIL PROTECTED]>
To: oryann9 <[EMAIL PROTECTED]>
Cc: Perl List <[email protected]>
Sent: Thursday, January 17, 2008 7:04:40 PM
Subject: Re: find2perl
>>>>> "oryann9" == oryann9 <[EMAIL PROTECTED]> writes:
oryann9> No one from perlmonks seems to know the answer either, likewise here.
This is a lie. If you don't see that it's a lie, then no amount
of answering in EITHER place will HELP you.
Hire a programmer, please.
--
I am not a liar! I am a Christian and the only little help I have received is:
If you don't want to descend into any directories, then you are likely better
off with opendir/readdir/closedir or glob. If you don't want to descend into
certain directories, then you set $File::Find::prune to 1 inside your wanted
subroutine when the current directory is one you do not want to descend into.
First, there is no 'prune' option that you can pass in to File::Find::find().
Second, you have to set $File::Find::prune to one (not zero). Third, you have
to set it from within your "wanted" subroutine when the traversal gets to a
directory that you don't want the traversal to descend into.
In your case, you appear to want to have your "wanted" subroutine always set
$File::Find::prune= 1; so no subdirectories are traversed into.
So after this I practiced and tried with no success.
How does anyone in the community expect people to learn or like this language
if there are responses in this way?
I will not argue, please do not respond. thank you.
P.S. Apologizes for not knowing I was supposed to disclose to this list I use
perlmonks, gesz.
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/