if ($type =~ "text/plain") { ...
I thought it wouldn't work to have a string on the right-hand side of =~ operator, but as far as I can tell it does. I thought it would have to be done like this to delimit a regex with ":
if ($type =~ m"text/plain") { ...
Is this a recent change in Perl (this is 5.8.5) or did I just miss this in my regex education?
-sam
In reply to Naked quotes work like m//? by samtregar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |