@array=('a.b','a'); @result=grep (/\ba\b/,@array); print $_."\n"for(@result);
Result:- a.b a
I need only the word a to be greped from the @array, not a.b.
Any suggestions.In reply to Question on Grep Function by kprasanna_79
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |