This will not answer your question but:
I'm pretty sure you meant =~ and not ~=
Sometimes I forget if it's =~ or ~=, so I use the following mnemonic: it is NOT supposed to be a contraction for $var = $var ~ $some_regex, so it is NOT ~=.
In reply to Re: Do I understand this?
by grondilu
in thread Do I understand this?
by eskiphill
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |