in reply to Re: Dealing with huge text string
in thread Dealing with huge text string

Change  while( <IN> ) { to  while( <INPUT> ) { and it may work better.