in reply to Using a Sub to pull info. from a Text File

It really depends upon where you are beginning.
1. Do you know how to read in a text file?
2. How are your areas marked as different (delimiters) and do you know how to parse the text file?
1. example:
open IN, "+<$file" || die "Can not open $file"; while (<IN>) { $readINtemp = $_; $messagein .= $readINtemp; } close IN;
This will read in your file and assign it to $mesasgein
2. You will have to know what your text file is delimiting on to do a substr or a split on it to get your values. If you go to the Tutorial section and then click on the link marked String Matching it should help you out.
I'm a 'newby' as well, but I wish you luck and hope I helped.

- Mission
"Heck I don't know how to do it either, but do you think that's going to stop me?!!"

Replies are listed 'Best First'.
Re: Re: Using a Sub to pull info. from a Text File
by Anonymous Monk on Apr 11, 2001 at 00:39 UTC
    The text file was pipe delimited. I have already been able to go through and parse the data. I can all of the data out and put it in a table right now. I am trying to take a section of the data in the middle of the file and put it in its own table. Does this help clarify my question?