use warnings; use strict; use PBP::xsm; =~ /xsm is on/; =~ /(?-x)(?-s)m is on, x and s if off/; #or whatever the appropriate syntax for switching off regex options... ??