in reply to Re^2: assigning regex matches to variables
in thread assigning regex matches to variables

$var =~ /some_regex/; does not change the value of $var, it just searches through $var for the pattern /some_regex/.