in reply to Re: Re: Re: pattern matching on a single line
in thread How do I store all matches from a single line?
map actually returns the result of EXPR in LIST context. That means each evaluation of
/<(.*?)>/g
returns the list of captured items. So in effect we get
@result = ( ( result of evaluating first element ), ( result of evaluating second element ), ....);
So the resulting array is one big array with all of the matches that EXPR produced
|
|---|