loop and timeout

S

Shoryuken

Hi there,

I'm having this question for the last couple days, so much so that I
think it's better for me
to ask for some helps.

I have a file and want to loop through and do something to each line.
I don't want the program stuck at a line forever, so if it takes too
long
it will skip to the next line

Any body kindly enlighten me the way to do it?

Thanks
 
J

Jürgen Exner

Shoryuken said:
I have a file and want to loop through and do something to each line.
I don't want the program stuck at a line forever, so if it takes too
long
it will skip to the next line

perldoc -q timeout
"How do I timeout a slow event?"

jue
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,244
Latest member
cryptotaxsoftware12

Latest Threads

Top