in reply to How to 'peek' at next line while parsing with <>
Why not just read it into a $scalar variable for checking before assigning it where you really want it to go if it meets the conditions....?
TexasTess
"Great Spirits Often Encounter Violent Opposition From Mediocre Minds" --Albert Einstein