sr*******@hotmail.com (Scott) wrote in message news:<26**************************@posting.google. com>...
I am new to perl, and have not found any good examples of parsing to
help me out.
Rather then asking outright you might want to try the code
yourself and then post problems you are having. Sample code
will help us help you. Also try some basic problem solving
using pseudo code...
i.e.
You know the format of the file so...
Open the file
While <more lines to read>
Read line
Tokenize the string based on tab
Store results into array
End While
Ask yourself the following questions;
1. How do I open a file for reading in PERL.
2. How do I read a line from the file using PERL.
3. You have the line, does PERL have a built in tokenizer (Parser!)
I'll give you some hints...
-open(FILEHANDLE, "filename");
-while(<FILEHANDLE>)
-chomp()
-split()
and one other function you should look up...
die()
There are lots of examples of the above functions on the newgroups.
Cheers!