note
tphyahoo
How hard would it be to write a pragma to do this? Or does one already exist? I'm thinking something like...
<code>
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... ??
</code>
Could be a nifty way of anticipating the Coming of Perl 6. Whenever that'll be...
556406
556406