dibre has asked for the wisdom of the Perl Monks concerning the following question:
I've a code snippet which does some sequence of action upon a file test operation. However the perl which i use is old and uselargefiles='UNKNOWN'. The code does not recognise the $file ( > 2GB)instead it jumps to the else part as if the $file size was zero. Is there a way to make perl recognize the $file greater than 2GB without recompiling/upgrading to a new version or how to exit the code during encounters with $file >2GB (when its not able to recognise the $file)
if ( -s $file ) { .....} else {...}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: file test operation on files greater than 2gigs
by daxim (Curate) on Aug 01, 2013 at 10:48 UTC | |
by Anonymous Monk on Aug 01, 2013 at 10:57 UTC | |
Re: file test operation on files greater than 2gigs
by Corion (Patriarch) on Aug 01, 2013 at 10:49 UTC | |
by Anonymous Monk on Aug 01, 2013 at 11:50 UTC | |
by Anonymous Monk on Aug 01, 2013 at 12:47 UTC |
Back to
Seekers of Perl Wisdom