Yes, use \b which indicates a "word boundary".
print grep { m{\brun\b} } qw/run runnable running run awordendingwithr +un/;
Output:
runrun
See perlre.
In reply to Re: grep - serach limited to complete word only
by FunkyMonk
in thread grep - serach limited to complete word only
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |