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
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to check lines that start with the same word then delete one of them
by hippo (Archbishop) on Apr 10, 2020 at 13:38 UTC | |
by LanX (Saint) on Apr 10, 2020 at 18:35 UTC |