On Tue, Aug 17, 2004 at 12:17:53PM +0800, Shu Hung (Koala) wrote:

> I recently wrote a script with a '-f' file test inside.
> 
> Normally, a '-f <filename>' returns TRUE if a file with that filename
> exist. My script returns TRUE for all the files -- except the largest
> one (9.7 GB) on my list (others are XX MB - XXX MB in size). Whenever
> I test it with '-f' test, it returns FALSE.
> 
> I checked everything in the script and tested it serval times. It
> seems I must come to conclude like this - the '-f' test cannot find
> large files.
> 
> Does anybody here have the same experience as I does?
> Is this a bug of perl? Or am I mistaken?

Check whether your perl was compiled with large file support.  You can
do this by taking a look at the output of perl -V.  Look for whether
uselargefiles is define or undef.  Also check the cc line and the
Compile-time options for mention of large files.  It may be that you
will need to recompile your perl with large file support if that is
supported on your platform.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to