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. Thanksopen FILE,"$commandfile"; foreach (readline FILE1) { if (/error occurred/) { s/.*//; } push @start_from, $_; }
Edited by Chady -- code tags.
In reply to Re^2: Parsing text file question
by sashac88
in thread Parsing text file question
by sashac88
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |