in reply to how to add more intelligence to grep functionality
@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
|
|---|