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

Re: [MacPerl] Random lines from a File



At 16.13 -0500 1999.03.04, Ronald J. Kimball wrote:
>But a disimprovement in that it has to read the whole file five times over!

Yep.  To fix that is an exercise left to the reader.


>This one could select the same line more than once as well.  Is that a bug
>or a feature?

Depends on what you want.  Both are reasonable.


>I can post a proof of why this solution works, if there's interest.

Sure, what the heck.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

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