Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: array of strings that matched a pattern

by Fletch (Chancellor)
on Apr 29, 2011 at 13:23 UTC ( #901989=note: print w/ replies, xml ) Need Help??


in reply to array of strings that matched a pattern

Slightly tangental but just for edification's sake: there's also @+ and @- which store offsets into the string and the documentation for the later gives examples to translate a match variable $n into a corresponding substr($str, $-[n], $+[n]-$-[n]) call.

The cake is a lie.
The cake is a lie.
The cake is a lie.


Comment on Re: array of strings that matched a pattern

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://901989]
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: (7)
As of 2014-12-18 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls