http://www.perlmonks.org?node_id=1016674


in reply to How to store matched $1 values one by one to array?

perlintro -> perlrequick#Extracting matches, More matching
@words = ($x =~ /(\w+)/g); # matches, # $word[0] = 'cat' # $word[1] = 'dog' # $word[2] = 'house'
  • Comment on Re: How to store matched $1 values one by one to array? (perlrequick)
  • Download Code