Charles,
Thanks for the warning on being careful what I wish.
Actually what you showed me was exactly what I was looking for.
My programming background is in C++, and a bit of VB, and VBA.
I'm just starting out in perl, and wasn't aware of functions like substr.
That was exactly the kind of explanation I was looking for.
Thanks again.