@new = grep /accoun.*end/, @array; print "Matched :$_:\n" for @new;
Notice the .*. The period means any character, the asterisk means any amount of these. Compare that to accoun*end which mean "find 'accou', then any amount of n's, then 'end'."
-Bryan
In reply to Re: how to add more intelligence to grep functionality
by mrborisguy
in thread how to add more intelligence to grep functionality
by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |