#! perl -sw use strict; my @stack; while( ) { print; s[NOT\s+][-]g; 1 while s[(?