while (<DATA>) { push(@array, substr($_,0,index($_,' '))) if index($_,'Vet') == -1; } print join("\n",@array); __DATA__ David Veterinarian Jackie Orthopedist Karen Veterinarian
In reply to Re: regex clarification
by TedPride
in thread regex clarification
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |