[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Beginner's question



At 21:49 -0500 05-02-2000, Ronald J Kimball wrote:
>But, since the program never seeks back to the beginning of the file after
>the first execution of the while loop, this extra execution won't take very
>long.

Oops! You're right. Ofcourse, this was meant as an exercise for the reader :-)

The best thing to do would be to read the whole word list into memory 
and do the grepping there. Else you would need to open the file every 
time you pass through the loop.


Axel

_____________________________
Axel M. Roest                | AXEL Development & Support
info@axel.nu                 | Macintosh developer & UNIX sysadmin
http://www.axel.nu           | 42

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org