in reply to Matching problem

m/$searchword/
or
m/\b$searchword\b/


see also:
perldoc perlre