Perl - How do to a terminal session, some suggestions?
Can someone point me to documentation on how to do the following -
I want to read in a large error log, then display it to the screen. I need from there to be able to include or exclude certain lines in my output. So I might want to look for lines that ONLY contain "Error 12", or I want to exclude all lines that say "Error 12". I want to be able to continue to apply filters and do a build up, so let's say I want to exclude 12 different things from a log, I just keep adding to the exclude stack, or remove lines that I've excluded.
So what I'm looking for a way to basically be able to go into my own vi session, the arrow keys will scroll up and down in the buffer, and I will scan the keyboard for input like "q" to quit, "i" to include, "e" to exclude, and those will pop me to a screen that would show me what I currently have included or excluded, and allow me to type in a term.
The array manipulation, exclusion, inclusion and associated stuff I can handle. I'm just not sure where to start for the terminal session and scanning of the keyboard for certain input? Just looking for suggested reading, or more importantly, terms to look for that would accomodate what I'm looking for?
Thanks for the help!
Devon
|