balakrishnan has asked for the wisdom of the Perl Monks concerning the following question:
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>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: can i get a matched values as an array
by irah (Pilgrim) on Feb 17, 2009 at 08:39 UTC | |
|
Re: can i get a matched values as an array
by AnomalousMonk (Archbishop) on Feb 17, 2009 at 08:41 UTC | |
|
Re: can i get a matched values as an array
by gone2015 (Deacon) on Feb 17, 2009 at 14:50 UTC | |
|
Re: can i get a matched values as an array
by Utilitarian (Vicar) on Feb 17, 2009 at 08:49 UTC |