Hello again. <br><br> I've got a file full of text which I need to split up on blank lines, e.g. a \n at the begining of the line. Hence I have been using:<br><br><FONT FACE=monospace>while(<INF>
<br>{<br> if (/^\n/)<br> {<br> #blank line code<br> }<br> else<br> {<br> #code to handle other lines<br> }<br>}</font><br><br>I've also tried:<br><br><FONT FACE=monospace>@sections_of_text = split(/^\n/,$all_lines_of_text);</font><br><br>But neither seems to work, does the ^ need escaping within either of these expressions?<br><br>Many thanks for any help!<br>Loon