EDIT: I rebooted my WinXP box and now everything works fine. It doesn't make any sense to me that it would be magically fixed. I truly dislike this OS. Sorry for the inconvenience of reading/helping with this. I appreciate the help I've received.
Here's some code:
my $size = -s "myfile.pl";This returns 24576 bytes, but WinXP reports 26755 bytes (difference of 2179 bytes).
This is being used in Amazon::S3. The problem causes the uploaded file to be about 2kb short, which means I'm missing data. It does this with all non-binary files I try it on, but not the same difference in size. It seems to be correct with all the binary files I've tried.
(stat($filename))[7] returns the same (incorrect) number.
Does anyone have any ideas?
EDIT: After some tests, I'm not sure if there's something wrong with the file itself or what, but writing to a file in Perl and then testing the filesize comes out as one would expect. I've yet to figure out what's going on. In the mean time, I'm just slurping the file and doing what I need to in Perl without -s or (stat())7.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |