open (FILE,"file.txt"); while (my $data = <FILE>) { chomp($data); print ("$data\n"); sleep 60 if $. % 10 == 0; } close(FILE);
In reply to Re: how to read every 10 line from input text file ?
by toolic
in thread how to read every 10 line from input text file ?
by bh_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |