Thanks to all who replied. I figured reading (and writing) one byte at a time was the bottleneck, but mostly I'm not familiar with perl's buffer handling functions/methods... I just knew enough to compare one byte at a time at least (and I guess even that wasn't optimal since I was using "eq" instead of "==").
Anyway, I'll have to do some reading I guess, probably not a bad language to "get comfortable" with anyway... either that or I'll redo it in C (could do that in 5 minutes), but then I have to mess with Unix compilers and all that mess since it must run on a Unix server (but at least I only need it to run on one specific server). -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/