Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
# ls -l foo -rw-r--r-- 1 root wheel 8366218824 Apr 24 23:38 foo # perl -e 'print (-s "foo")."\n";' -223715768 # # perl -e '($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks) = stat "foo"; print "$size\n";' -223715768 # perl -e 'use POSIX; ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks) = POSIX::stat "foo"; print "$size\n";' -223715768
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: get the size of a LARGE file
by dws (Chancellor) on Apr 25, 2002 at 07:57 UTC | |
by Anonymous Monk on Apr 25, 2002 at 08:13 UTC | |
by Anonymous Monk on Apr 25, 2002 at 08:24 UTC | |
by TheHobbit (Pilgrim) on Apr 25, 2002 at 10:20 UTC | |
by dws (Chancellor) on Apr 25, 2002 at 14:59 UTC | |
|
Re: get the size of a LARGE file
by samtregar (Abbot) on Apr 25, 2002 at 07:54 UTC | |
by Anonymous Monk on Apr 25, 2002 at 08:05 UTC | |
|
Re: get the size of a LARGE file
by shotgunefx (Parson) on Apr 25, 2002 at 07:59 UTC | |
|
Re: get the size of a LARGE file
by asdfgroup (Beadle) on Apr 25, 2002 at 16:05 UTC | |
|
Re: get the size of a LARGE file
by asdfgroup (Beadle) on Apr 25, 2002 at 16:11 UTC |