Benchmarks show it to be slightly faster to save $file in a variable, instead of repeating the statement.