in reply to Re: Parsing text file question
in thread Parsing text file question

open FILE,"$commandfile"; foreach (readline FILE1) { if (/error occurred/) { s/.*//; } push @start_from, $_; }
FILE has many commands in it.If I see a line with comand "exit" on it-then I have to ignore the preceding line,i.e. not to put it in @start_from. Thanks

Edited by Chady -- code tags.