while (<>) { push(@array, $1) if m/^(\w+)\s+(?!Vet)\S/; } print @array;
What this has going for it is that it doesn't use $& (the use of which is a considerable performance hit). Also, it doesn't use (?>pattern) which is: "considered highly experimental, and may be changed or deleted without notice." see perldoc perlre (of course) for more details.
In reply to Re: regex clarification
by Thelonious
in thread regex clarification
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |