You could try it with word boundaries:
my @stuff = grep /\b run \b/x, @other_stuff;
In reply to Re: grep - serach limited to complete word only
by jwkrahn
in thread grep - serach limited to complete word only
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |