... my @results = stat( $filename ); my $size = $results[7]; #### perldoc -f stat