You aren't giving us very much to go on. Next time you may want to go a little more into detail as to what exactly you are trying to do. And it is best to give some example code of what you have already tried. With that being said reading
open,
split, and
perlfaq6 will probably get you started.
Update: You should also consider reading
Before You Post... for some guidelines on asking for help.