
ThePerlJunkie
New User

Sep 26, 2011, 5:26 PM
Post #1 of 5
(5894 views)
|
File::stat returns undef only some times?! :-(
|
Can't Post
|
|
Anyone seen any behavior with File::stat (or stat or lstat) returning an undefined value used in a File::Find routine? I'm getting consistently inconsistent results. :-) Meaning, I can't seem to stat certain files and they are the same files -- seemingly. Can't find a thing wrong with the files -- they are regular text files, most of them. But sometimes a file will come back undefined. Beats the mess out of me. Can't seem to find a lot on this out there, so I thought I would ask. I'm displaying to stdout all the files File::Find returns with $File::Find::name, so it's traversing whatever tree I give it, but... I get undefineds here and there. I own the files, they are 644... They are not locked... No explanation. And what's the big idea of someone stealing my screen name here at TPA?!! :-) (Just kidding. Nothing that a simple article prefix didn't fix... :-)) -pj -- Perl Junkie Custom OO Perl, Ruby code and layered product installs and customizations (WP, JM!, MT, etc.) on demand
|