$/= '"'; while( <> ) { s/\s+/ /g if 0 == $. % 2 && /\n/; print; }
Update: Changed "if 0 == ( 1 & $. );" because the bit-op was a bit silly and to leave single-line strings uncollapsed.
- tye
In reply to Re: Changing quoted strings spanning more than one line ($/)
by tye
in thread Changing quoted strings spanning more than one line
by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |