See perlop on qr:
It (the result of qr) magically differs from a string containing the same characters: ref(qr/x/) returns "Regexp", even though dereferencing the result returns undef.
Basically, the difference between strings and regular expression objects is very, very thin from a user point of view.
In reply to Re^5: Composing regex's dynamically
by Corion
in thread Composing regex's dynamically
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |