On Jun 8, 2005, at 8:44, Ing. Branislav Gerzo wrote:

Offer Kaye [OK], on Tuesday, June 7, 2005 at 17:04 (+0300) contributed
this to our collective wisdom:

OK> There's no need to escape metachars in the replacement part. Without OK> modifiers (such as "e" or "x") the replacement part is treated as a
OK> simple double-quoted string (delimiter dependent).
OK> So the s/// can be written as:
OK> s|\./officers-gasenate\.html|http://www.legis.state.ga.us/cgi- bin/peo_list.pl?List=stsenatedl|

why not use \Q in first part ?


Well, you could.

In the shell prompt (which is where the OP was writing the substitution) I prefer to avoid backslashes altogether, because otherwise I need to double-check backslash rules of the very shell. That's why I used "[.]".

-- fxn


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to