in reply to Matching Text

This sounds like homework. Are you sure you don't want to give this a whirl? It's a fairly basic script which reads a line, splits it, and stores the result in some sort of data structure. Why don't you try it yourself and post your code if you get stuck. The monks here could whip up a real slick perlish way to do it, but would your teacher really believe you wrote it if you are just starting out in perl? Plus, if someone else does all the work, you stay a newbie.

"You learn by doing", as my chemistry teacher used to say.