Couldn't get that to work. Also tried
my @digits = $string2 =~ /(\d)+/;which didn't work either. I guess I'm generally confused about whether the =~ operator actually assigns the result of the search; i.e. whether
$var =~ /some_regex/;changes the value of $var.
In reply to Re^2: assigning regex matches to variables
by genghis
in thread assigning regex matches to variables
by genghis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |