in reply to Help with creating output to screen...
makes it look as though you might sort of think they are on the same line. I think you need to do the following (expressed as pseudocode; you still need quotewords, etc.):{ @data = "ewords('\s+', 0, $_); } if ((/^PER\s*$/) && ($data[0]) && ($data[1]) && ($data[2]) && ($data +[3]))
HTH, --travelerwhile (<>){ last if EOS if (PER){ read a PER line and process it } elsif (EMP){ read an EMP line and process it } }
|
|---|