![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re^2: how to read every 10 line from input text file ?by chrestomanci (Priest) |
on Nov 24, 2010 at 10:00 UTC ( #873400=note: print w/replies, xml ) | Need Help?? |
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:
Or better still: sleep 60 if 0 == (FILE->input_line_number() %10)
In Section
Seekers of Perl Wisdom
|
|