in reply to Re: running a loop in background...
in thread running a loop in background...
The 'last' function doesn't seem to work. It should be easy, but being new to perl, I'm having trouble. Can anyone help?for(;;) { while(<FH>) { $textbox->insert('end', $_); $textbox->yviewScroll(1, "units"); #print substr($_,0,5); $test = $_; if (substr($_,0,5) eq "\>info") {last;} } #sleep $DELAY; $mw->update; if (substr($test,0,5) ne "\>info") { seek(FH, 0, 1);} } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: running a loop in background...
by Chmrr (Vicar) on Sep 12, 2001 at 01:12 UTC |