Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: assigning regex matches to variablesby genghis (Novice) |
on May 28, 2011 at 20:26 UTC ( [id://907165]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|