This seems like a good place to use Tie::File instead of File::Slurp since you only need the first few lines of the files.
In reply to Re^2: Find a file with same name but different extension
by Lotus1
in thread Find a file with same name but different extension
by Jalcock501
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |