Hi
I am trying to push values in array to what ever matched in a regular expression. For example $string = "something22 322 abc"; $string =~ /(\d+)\s(\d+)(abc)/; This should create an array like with elements as (22, 322,"abc"). What will the best way to do it? The regular expression is really long as compared to the one i am mentioning and was wondering if could create a loop which would iterate over $1,$2,$3 .....$15 (temporary variable which perl uses to store patterns matched) and store those in an array. Thanks, -Ben