in reply to Re^3: How to check lines that start with the same word then delete one of them
in thread How to check lines that start with the same word then delete one of them
Pretty much what I meant, thanks!
Minor nitpick, I'd assign the first match to a normal var.
Special vars like $1 can get overwritten easily by "more code" before seen is set.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In Section
Seekers of Perl Wisdom