Doc,

You should read my replies more attentive

the last reply I made was about the "empty-file-readline()-loop-o-death"

The line in question is this one :

code:

if $x or asc($x) = $cr ;where $cr equals a CRLF

It checks the first readline for contents or a Newline , and if there isn't, it don't continues , thus the Killer loop is prevent ...

Jochen


<edit>

Huhh , scary !!!
And I should read your replies more attentive ...
the problem you got is that $crlf is not defined !
place
$crlf = chr(13) + chr(10)
in the start of your script !

</edit>

[ 26 October 2001: Message edited by: jpols ]

_________________________