Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
sorry about the german variable, but i guess you get the idea. is there a way, to only read a line, when there is a new line??$stop == 0; # always stays 0 open (MUFFINLOG,"<muffin.log") || die "Muffin.log nicht gefunden\n"; while($stop == 0) { while(<MUFFINLOG>) { chomp; if($_ ne "") { push(@Zeile,$_); &ZeilenAnalyse # some analyse and printing } } print "DID IT\n"; # for testing purpose only }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading line from file only when there is a new line (live)
by Corion (Patriarch) on Sep 12, 2001 at 16:59 UTC | |
|
Re: Reading line from file only when there is a new line (live)
by blakem (Monsignor) on Sep 12, 2001 at 17:01 UTC | |
|
Re: Reading line from file only when there is a new line (live)
by davorg (Chancellor) on Sep 12, 2001 at 16:59 UTC | |
by suaveant (Parson) on Sep 12, 2001 at 17:27 UTC | |
by davorg (Chancellor) on Sep 12, 2001 at 17:34 UTC | |
by Anonymous Monk on Sep 12, 2001 at 17:49 UTC | |
|
Re: Reading a line from file only when there is a new line (live)
by Caillte (Friar) on Sep 12, 2001 at 17:07 UTC | |
|
Re: Reading line from file only when there is a new line (live)
by George_Sherston (Vicar) on Sep 12, 2001 at 17:36 UTC |