Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Re: Re: pattern matching on a single line

by lestrrat (Deacon)
on Jun 06, 2001 at 01:13 UTC ( [id://86016]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://86016]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-03-28 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found