in reply to Monk Specs.?
What does this code do? If the target date is found while looking through the log file, print the remainder of the log file. The print will continue until the file runs out. At that point the loop will continue, but the log file has run out, and the loop will exit. (This assumes that the data is sorted!)while ( <LOG> ) { if ( /$date/ ) { print LOG_FILE <LOG>; } # UPDATED }
Study hard. :)
--t. alex
"Of course, you realize that this means war." -- Bugs Bunny.
Update: Added LOG_FILE file handle that was missing from the original post, as indicated by replies after this note.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re:x2 Monk Specs.?
by grinder (Bishop) on Jan 16, 2002 at 19:39 UTC | |
by talexb (Chancellor) on Jan 16, 2002 at 19:48 UTC | |
Re: Re: Monk Specs.?
by particle (Vicar) on Jan 16, 2002 at 19:43 UTC | |
by talexb (Chancellor) on Jan 16, 2002 at 20:41 UTC | |
Re: Re: Monk Specs.?
by jdporter (Paladin) on Nov 05, 2002 at 15:30 UTC |