Or even
foreach ( split(/^/, $text) ) { print "* $_"; } [download]
In reply to Re^2: how to split blocks of text by ambrus in thread how to split blocks of text by Otogi