>$`, $& and $' are useful variables which are never used by any >experienced Perl hacker since they have well known problems with >efficiency. That's hardly true. I could show you plenty of code from inexperienced Perl hackers like lwall that use them. But the cost in understood. :-) The rest of what you said probably is reasonable, however. The (.*?)(blah)(.*) solution kind works sometimes, but is hardly pleasant. Likewise the @+ and @- stuff. There's also long been talk/thought about making $& and $1 and friends magic aliases into the original string, which would save that cost. --tom
- RFC 158 (v1) Regular Expression Special Variables Perl6 RFC Librarian
- Re: RFC 158 (v1) Regular Expression Special Varia... Tom Christiansen
- Re: RFC 158 (v1) Regular Expression Special V... Uri Guttman
- Re: RFC 158 (v1) Regular Expression Speci... Tom Christiansen
- Re: RFC 158 (v1) Regular Expression S... Uri Guttman
- Re: RFC 158 (v1) Regular Expression Special V... Mark-Jason Dominus
- Re: RFC 158 (v1) Regular Expression Speci... Tom Christiansen
- Re: RFC 158 (v1) Regular Expression S... Mark-Jason Dominus
- Re: RFC 158 (v1) Regular Express... Mark-Jason Dominus
- Re: RFC 158 (v1) Regular Expression Speci... Uri Guttman
- Re: RFC 158 (v1) Regular Expression Speci... Hugo
- Re: RFC 158 (v1) Regular Expression Special V... David L. Nicol