in reply to regex clarification
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex clarification
by tphyahoo (Vicar) on Mar 05, 2005 at 11:55 UTC |