suno has asked for the wisdom of the Perl Monks concerning the following question:
Here, anything followed by "EQU *" is said to be a label/table name. I have to generate two output files 1)Code and 2)Variable files ...here, i want to identify whether the label belongs to code file or variable file. if a label followed by DC statements, then it has to be pushed to variable file. else to code file. so my output files shoul have...LABEL#1 EQU * $MAC ABORT LABEL#2 EQU * + $NOT UPDATE,STOP T#TAB1 EQU * + DC AL4(-1)
CODE_FILE:
LABEL#1 EQU * + $MAC ABORT + LABEL#2 EQU * + $NOT UPDATE,STOP
VARIABLE_FILE:
T#TAB1 EQU * + DC AL4(-1)
please help me in this without using while loop...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to push the previous line based on the current line to two different files.
by davido (Cardinal) on Sep 13, 2012 at 06:26 UTC | |
|
Re: How to push the previous line based on the current line to two different files.
by aaron_baugher (Curate) on Sep 13, 2012 at 07:14 UTC | |
|
Re: How to push the previous line based on the current line to two different files.
by kcott (Archbishop) on Sep 13, 2012 at 06:27 UTC | |
by GrandFather (Saint) on Sep 14, 2012 at 01:05 UTC | |
by kcott (Archbishop) on Sep 14, 2012 at 07:19 UTC | |
by suno (Acolyte) on Sep 13, 2012 at 07:10 UTC | |
by Anonymous Monk on Sep 13, 2012 at 07:26 UTC |