CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions: Re: [BillKSmith] Issues :matching variable $1,$2,... in replacement string: Edit Log



Zhris
Enthusiast

Apr 21, 2011, 4:18 PM


Views: 9832
Re: [BillKSmith] Issues :matching variable $1,$2,... in replacement string

So hang on, whats this "double e" doing? Evaluate, evaluate. Would someone care to explain?

Does it firstly evaluate variables inside $str i.e. $1, then $str itself?

My initial attempt was something like /$search/eval{$replace}/eg; with no success.

Chris


(This post was edited by Zhris on Apr 21, 2011, 4:21 PM)


Edit Log:
Post edited by Zhris (Enthusiast) on Apr 21, 2011, 4:20 PM
Post edited by Zhris (Enthusiast) on Apr 21, 2011, 4:20 PM
Post edited by Zhris (Enthusiast) on Apr 21, 2011, 4:21 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives