Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Portable filesize check? (Win32)by Eyck (Priest) |
on Mar 10, 2005 at 09:50 UTC ( [id://438191]=note: print w/replies, xml ) | Need Help?? |
As I said, the size reported by '-s' agrees with the one reported by dir.
But 'dir' is not omnipotent, and there are things like sparse, encrypted and compressed files, where there's no obvious size to report. Check ls command manual, it's got myriad of switches for a reason. Problem was too much magic in perl file handling (or rather my lack of knowledge on that subject), and binmode fixed that.
In Section
Seekers of Perl Wisdom
|
|