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

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`;

Replies are listed 'Best First'.
Re^3: file test operation on files greater than 2gigs
by Anonymous Monk on Aug 01, 2013 at 12:47 UTC
    ...except that the GNU version uses -c %s for the format string argument. Ah well. Portability woes everywhere.