$var =~ /some_regex/; does not change the value of $var, it just searches through $var for the pattern /some_regex/.
In reply to Re^3: assigning regex matches to variables
by jwkrahn
in thread assigning regex matches to variables
by genghis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |