in reply to Re: Estimating Vocabulary
in thread Estimating Vocabulary
my(@lines, $line); open(FILE, shift) || die; 1 while <FILE>; $line=$.; seek(FILE, 0, $. = 0); rand($line-$.) < $ARGV[0]-@lines && push(@lines,$_) while <FILE>; print @lines, "wc -l could have told you this is $. words\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Estimating Vocabulary
by belg4mit (Prior) on Mar 28, 2002 at 01:00 UTC | |
by I0 (Priest) on Mar 28, 2002 at 01:39 UTC | |
by belg4mit (Prior) on Mar 28, 2002 at 01:43 UTC | |
by I0 (Priest) on Mar 28, 2002 at 02:12 UTC | |
by belg4mit (Prior) on Mar 28, 2002 at 02:16 UTC |