balakrishnan has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I have a line of code to match a line with some regular expression.
Note : Am not interested to explicitly copy the matched variables into an array.
Thanks.
I have a line of code to match a line with some regular expression.
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>
Note : Am not interested to explicitly copy the matched variables into an array.
Thanks.
Back to
Seekers of Perl Wisdom