Guess what! That's what $found{$1}++ is for. Just print not only the keys but also the values of hash %found.
In reply to Re^5: Using grep to pick out Specific lines in a text file
by hdb
in thread Using grep to pick out Specific lines in a text file
by itguy87
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |