I have a lot of text files with fixed-width fields:
Dave Thomas 123 Main
Dan Anderson 456 Center
Wilma R
Just use Perl's unpack function. Something like this:
while () {
my ($first,$last,$street) = unpack("A9A25A50",$_);
}
Inside the unpack template, the "A###", you can put the width of the field for each A. There are a variety of other formats that you can use to mix and match with, that is, integer fields, etc... If the file is fixed width, like mainframe files, then this should be the easiest.