in reply to words wich ends with "f"
I'd go with something like this (yeah, TIMTOWTDI):
$s = "four fifth two frog left leaf fred wolf";
@f = grep (/^[^f]\w*f\w*$/, split(' ', $s));
Conway's Game of Life
Perl regular expressions
My Magic 8-Ball™
Results (186 votes). Check out past polls.