Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: (dkubb) Re: (2) Split

by mikfire (Deacon)
on Feb 14, 2001 at 19:57 UTC ( #58363=note: print w/replies, xml ) Need Help??


in reply to Re: (dkubb) Re: (2) Split
in thread How do I use Split

I promise this will be the last "clarification" I make in this thread.

You are close. You are very close. I would make these notes

  1. The 'g' option causes a global match - ie, find them all
  2. The regex, in this case, returns the list of all matches. In other cases, it will return how many matches were found. The difference is the context in which it is used. Since reverse() expects a list, it forces the regex to be evaluated in list context and, hence, returns the list.
In a clarifying mood,
mikfire

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2020-06-07 10:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (42 votes). Check out past polls.

    Notices?