Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

-f command problem

by gautamparimoo (Beadle)
on Aug 24, 2012 at 11:56 UTC ( #989501=perlquestion: print w/replies, xml ) Need Help??
gautamparimoo has asked for the wisdom of the Perl Monks concerning the following question:

I am using -f to scan a windows drive to get the count of file scanned through the following code

$current = $File::Find::name; if(-f $current ) { filesScanned++; }

the counter in above code filesScanned does not increment for a few files. Can anyone tell me y?

Replies are listed 'Best First'.
Re: -f command problem
by moritz (Cardinal) on Aug 24, 2012 at 12:00 UTC
Re: -f command problem
by Anonymous Monk on Aug 24, 2012 at 12:01 UTC
Re: -f command problem
by nemesdani (Friar) on Aug 24, 2012 at 11:59 UTC
    What kind of files are those few? Try to print the filenames and the counter as well.


    I'm too lazy to be proud of being impatient.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://989501]
Approved by moritz
help
Chatterbox?
[Tux]: chacham I did not want to also list Committed changes to the core or core modules and (Co-)Organized a perl event
[Corion]: Tux: (Co-)organizing a Perl event doesn't make you know Perl better, but only Perl people ;)

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2017-05-30 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?