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 ?
open (FILE,"file.txt"); while (my $data = <FILE>) { if($. % 10 ==0) { chomp($data); print ("$data\n"); sleep 60; } } close(FILE);
|
|---|