Now, if you had to do a regex, it would be much better if you did ($thing =~ /^thing$/), because that's equivalent to ($thing eq 'thing').
------
/me wants to be the brightest bulb in the chandelier!
Vote paco for President!
In reply to Re: Which is better when doing a simple match?
by dragonchild
in thread Which is better when doing a simple match?
by mr.dunstan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |