Dan wrote: > > open (DYNIXDBF, "dynixte.txt"); > my @dynixdata = <DYNIXDBF>; > close(DYNIXDBF); > # there's no need for the file to be open all the time during processing > # the file's data is in @dynixdata, so the file can be closed immediately > # and the data in @dynixdata remains. > If the file is large there is. The above snippet puts the entire contents of the file in to memory, where: while ( <FH> ) { ... only loads everything up to the input record seperator into memory, repeating until the end of the file is reached. Since the op wants to do line based processing, I suggest the while construct, as the code will scale better. Todd W. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]