ben perl wrote:
Hi
Hello,
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").
my @array = $string =~ /(\d+)\s(\d+)(abc)/; John -- Those people who think they know everything are a great annoyance to those of us who do. -- Isaac Asimov -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/