It also works like this:
for my $line ( split /^/, $s ) [download]
In reply to Re: matching lines in a long string by jwkrahn in thread matching lines in a long string by Cristoforo