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'
|
---|
In Section
Seekers of Perl Wisdom