Now I need to loop through the data and preform a regex on the $in{'9url'} part, but not the $in{'9'}. Basically, How do I handle the data in column 2 differently than in column one. Then print out the data. I got the printint part down.

This is hard for me to even explain. Do you see what I'm trying to do here?

I'll give an example.

The url is "http://www.site.com" and the link is called "click here"

I would loop through the data and add the string "http://www.mysite.com/redir.pl?url=" before the url. As for the link name I would just print it as is.

Now can you picture what I'm trying to do?

It's not exactly what I need to do but it's a good example. What I'm really doing is very much more confusing and that's why I used an example different than what I'm doing.