in reply to comparing size
Use "-s FILENAME" to return the size (in bytes) of a file, see perlfunc for more info. You'd want something like this
if (-s $fileOne != -s $fileTwo) { print "have different sizes\n"; } else { print "the same size\n"; };
Some other things to think about:
Hope this helps.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: comparing size
by splitOnce (Acolyte) on Aug 19, 2002 at 14:48 UTC |