The stupid question is the question not asked | |
PerlMonks |
Re: Extract random records from text fileby jeroenes (Priest) |
on Oct 02, 2001 at 20:28 UTC ( [id://116178]=note: print w/replies, xml ) | Need Help?? |
Look again at rand and perlvar.
Than you'll have to solve your delimiter problem. Dunno what it is, run some checks on that. (We're discussing that in CB right now) And, of course, use strict and warnings. Jeroen Update I added the local thing... too important to miss out... read Why or why not? - local undef $/ and Use strict warnings and diagnostics or die eg. Update 2 merlyn made me realize (again) that you don't need to floor the stuff:
In Section
Seekers of Perl Wisdom
|
|