in reply to Re: Re: help with search and match (Homework?)
in thread help with search and match

Also, use strict; use warnings; to catch some of your typos (and declare your variables).