I have a file with the following syntax in some_1.xyz
module some_1 { INPUT PINS OUTPUT PINS }
and I want to insert APPLY DELAYS xx and APPLY L
And what's wrong with the easy solution?:
$data=`cat /the/input/file`; $data=~s/some_1 {\n/some_1 {\nAPPLY DELAYS xx\nAPPLY LOADS ld\n/gm; print $data;