http://qs1969.pair.com?node_id=873356


in reply to Re: how to read every 10 line from input text file ?
in thread how to read every 10 line from input text file ?


"toolic" code will make it sleep at 10th line but if u need to read every 10th line following is the modified code
open (FILE,"file.txt"); while (my $data = <FILE>) { if($. % 10 ==0) { chomp($data); print ("$data\n"); sleep 60; } } close(FILE);
Thanks
AvantA