in reply to How to parse a scalar variable
for my $line(split /\n/,$header){ # process $line as though it came from a <> } [download]