Could someone post a code snippet of how to do the following? I just need a little help getting started since I am fairly new to Perl. Also, does anyone know of any good websites with Perl tutorials? Thanks in advance, Mark.
What I need to do is this:
On my Linux box, watch a certain directory for files, and when they appear, convert them from ascii fixed-length to ascii tab delimited. Could someone show me how to open a file in Perl, read from line to line in fixed length input (looping until eof) and writing these same records out to a tab delimited file. (Assuming the input data would look something like this
0010Mark 10/18/2003
0001Ted 11/04/2003
9091Billy 01/01/2001
(Code c(4), Name c(10), Date c(10))
Again, thanks for any help anyone may be able to provide.
What I need to do is this:
On my Linux box, watch a certain directory for files, and when they appear, convert them from ascii fixed-length to ascii tab delimited. Could someone show me how to open a file in Perl, read from line to line in fixed length input (looping until eof) and writing these same records out to a tab delimited file. (Assuming the input data would look something like this
0010Mark 10/18/2003
0001Ted 11/04/2003
9091Billy 01/01/2001
(Code c(4), Name c(10), Date c(10))
Again, thanks for any help anyone may be able to provide.