That's a first step in the right direction. Now, you don't want to print the line number of the previous line, but the content of the previous line. So you will need to come up with some way to remember the previous line and output it when the current line matches /^END$/ (I note you wrote /\END\b/, but I assume that's not what you mean). As I outlined several replies before this one, one possible approach could be:
In reply to Re^9: Help editing a file based off seach criteria
by Corion
in thread Help editing a file based off seach criteria
by perlnewb123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |