Lets not use the abbreviated perl predefined variables, that confuse newbies, and are partly responsible for perl's reputation as a read only language. Instead can I suggest:
use English '-no_match_vars'; ... sleep 60 if 0 == ($INPUT_LINE_NUMBER % 10)
Or better still:
sleep 60 if 0 == (FILE->input_line_number() %10)In reply to Re^2: how to read every 10 line from input text file ?
by chrestomanci
in thread how to read every 10 line from input text file ?
by bh_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |