Anchor your regular expressions or use eq
grep /^\Q$header_file\E$/} @headers
grep { $_ eq $header_file } @headers
In reply to Re: How to get an exact match of files
by Anonymous Monk
in thread How to get an exact match of files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |