> >It depends on what you need to do with the data. If you don't need to keep >all the data around, then you can just look at one line at a time rather >than a whole array of lines at once. > >open(F, 'file') || die $!; >while(<F>) { > print if /match this text/; >} >close(F); > Chris thanks for getting back to me, This is basically the way I ended up coding it last night - it is faster and requires less RAM than the 'opening file and shove into array method', although it can still be slowish if the item it is looking for is located near the EOF. Is there some way of compiling MacPerl scripts into machine language or converting them into C/C++ routines that I could then read into CodeWarrior... Maybe this would increase speed - then again maybe not?? Thanks, Shyam. __________________________________________________ Developers @ C=+ dev@cequel.co.uk #include 'cheesyquote.h'; __________________________________________________ ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch