By using the above,I can get the matched values by printing $1 and $2 variables. Will i get matched result as an array?$str =~ s/age ([0-9]+) name ([a-z]+)/$&/; <br>
In reply to can i get a matched values as an array by balakrishnan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |