Hashes are great for keeping track of unique values.foreach (@recs) { $found{$1}++ while /\s-D(\S+)/g; } print "Found flags: ", join(" ", sort keys %found), "\n";
In reply to Re: Regular Expression
by Fastolfe
in thread Regular Expression
by ashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |