|
|
| Just another Perl shrine | |
| PerlMonks |
Re: comparing sizeby gav^ (Curate) |
| on Aug 19, 2002 at 14:19 UTC ( #191184=note: print w/ replies, xml ) | Need Help?? |
|
To find the size of a file you can use:
my $size = -s $file; You could also use the core module File::stat which provides dev, ino, mode, nlink, uid, gid, rdev, size, atime, mtime, ctime, blksize, and block. I tend to find this easier than remembering what order stat returns things.
gav^
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||