in reply to How to do pattern matching and output the results?
@lines=<INFO>; close INFO; [download]
Originally posted as a Categorized Answer.