in reply to Re^10: Sorting names using Regular Expressions and placing them in different Files.
in thread Sorting names using Regular Expressions and placing them in different Files.

Line 62: use chomp $searchline instead of just chomp.
Line 64: use $searchline instead of $_ on the previous line.
Line 67: use $searchline instead of $_.

---
It's all fine and dandy until someone has to look at the code.