in reply to Using Spaces in a Regex With the X Modifier

The x modifier only ignores spaces in the "match" part, not in the replace part - at least I conclude that from this test:
perl -e '$_=shift @ARGV; s/ c / /x; print;' "bbbcbbb" bbb bbb