in reply to Checking filesizes
... my @results = stat( $filename ); my $size = $results[7]; [download]
perldoc -f stat [download]