in reply to Re^2: Regular expression for hexadecimal number
in thread Regular expression for hexadecimal number

What you describe is accomplished not by using a modifier, but by being explicit in the definition of the char class:

m/0x[\da-fA-F]{1,4}/;

There's no reason to have or use modifiers on only part of a regex, when one can simply use the mechanisms already available to accomplish the same goal.

<radiant.matrix>
Ramblings and references
The Code that can be seen is not the true Code
I haven't found a problem yet that can't be solved by a well-placed trebuchet