in reply to Store regex modifiers in variables?
$modifiers =~ tr/cgimosx//cd; # remove illegal mods $regex = eval qq{ qr/\$regex/$modifiers }; [download]