Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Using stat()

by neilwatson (Priest)
on May 24, 2002 at 13:34 UTC ( #169054=note: print w/replies, xml ) Need Help??


in reply to Re: Using stat()
in thread Using stat() to get the total size of files in a folder

Sam has it right. File::Find is very fast and efficient. You can see a good example on my website

Neil Watson
watson-wilson.ca

Replies are listed 'Best First'.
Re: Re: Re: Using stat()
by joshua (Pilgrim) on May 29, 2002 at 17:24 UTC
    Ok, I've decided to use File::Find. When I call the find() function, I get this error.Insecure $ENV{PATH} while running with -T switch at /usr/lib/perl5/5.6.1/Cwd.pm line 92.So, I decided to add $ENV{PATH} = '/bin:/usr/bin'; to my script. Now, I'm getting this error.Insecure dependency in chdir while running with -T switch at /usr/lib/perl5/5.6.1/File/Find.pm line 467.I noticed in Neil's script, It didn't have the -T switch. Will File::Find just not run in taint mode?

    Thanks.
    Joshua

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://169054]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2022-05-25 17:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?