in reply to Parsing text file question

Show us the related snippet of your code. It's much easier to help you, if we knew what you're exactly doing.

Replies are listed 'Best First'.
Re^2: Parsing text file question
by sashac88 (Beadle) on Jun 28, 2004 at 08:27 UTC
    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.