The -p option enables line-by-line processing, so you have to change perls notion of a line:
perl -pe 'BEGIN { $/ = undef }; s/---\n---/---/g;'
In reply to Re^3: Two line match
by moritz
in thread Two line match
by jrosenfeld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |