Eyck has asked for the wisdom of the Perl Monks concerning the following question:
my $lsize=-s $filename; my $rsize=$remote->size($filename); if ($lsize!=$rsize) { croak "Corruption!"; };
This works fine, until I run this on windows... then it seems like '-s' reports wrong filesize (maybe \r\n is counted as one character?)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Portable filesize check? (Win32)
by Corion (Patriarch) on Mar 10, 2005 at 08:40 UTC | |
by Eyck (Priest) on Mar 10, 2005 at 09:20 UTC | |
|
Re: Portable filesize check? (Win32)
by eyepopslikeamosquito (Archbishop) on Mar 10, 2005 at 09:23 UTC | |
by Eyck (Priest) on Mar 10, 2005 at 09:50 UTC | |
by thor (Priest) on Mar 10, 2005 at 12:36 UTC |