This might work for you.
undef $/; $a = <DATA>; $nline =q($exec = $ENV{EXEC};); $a =~ s/\n([^\n]+)/\n$nline\n$1/s; print "$a"; __DATA__ $cwd = cwd(); print"$cwd\n";
Prasad
In reply to Re^3: insert line in between two lines
by prasadbabu
in thread insert line in between two lines
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |