in reply to Pattern Matching examples

There's perlretut and perlrequick in the standard perl distribution these days; they might help. But also, you should look into unpack() and substr() if bits of your records can be nailed to specific locations on a line.