in reply to Regex and @+
Typo problem. In your second line for @+ you have $-[2] when you meant/expected $+[2] Change that and you get what you expect.
For those who might be wondering the @+ and @- arrays are the replacements for the much maligned $` $' and $" regex vars in 5.6 But who uses them (outside of sigs that is :-) Have a look at japhy's excellent book (now chapter 5 I think) for a run down.
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|