in reply to file test operation on files greater than 2gigs

Besides recompiling Perl, the only way is to call the OS tools, which hopefully know how to deal with file sizes larger than 32 bit:

my $output= `ls -l "$filename"` # Parse the output of ls

Replies are listed 'Best First'.
Re^2: file test operation on files greater than 2gigs
by Anonymous Monk on Aug 01, 2013 at 11:50 UTC
    Probably better to use the output of stat(1). Trying to parse ls(1) is well known to be a bad idea.
    my $size = `stat -f %z yourfile.txt`;
      ...except that the GNU version uses -c %s for the format string argument. Ah well. Portability woes everywhere.