Off-topic, but I can't resist. Every time I see a C-style for loop in someone's Perl code, I die a little inside. How about this instead:
for my $i ( 0 .. $#sample ) { print "[$i] '$sample[$i]'\n"; }
In reply to Re: selecting N random lines from a file in one pass
by Anonymous Monk
in thread selecting N random lines from a file in one pass
by seuratt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |