if ($l =~ m/\@\@(.|\n)/) {
($to,$op,$esc,$l) = ($`,$1,$&,$');
add_text($to);
- if ($op =~ m/[-< \$?]/) {
- $substr.= $esc if @oplist;
+ if ($op =~ m/[-< \$?\n]/) {
+ if (!@oplist) {
+ add_perl($op) if $op =~ m/[\$]/;
+ } else {
+ $substr.= $esc;
+ }
push @oplist, $op;
- add_perl($op) if $op =~ m/[\$]/;
} elsif ($op =~ m/[\)\}\;\:]/) {
err("unmatched closing \@\@$op") unless @oplist;
$want= pop @oplist;