On Thu, Dec 11, 2003 at 11:07:53AM -0800, R. Joseph Newton wrote:
>If you are going to do your regex work--especially at a high level--in Perl, it is 
>imperative that
>you read the Perl documentation.  The problem in the above sam[ple, or the one that 
>jumps out at me,
>is that you are using the backslash form of back reference in the replacement string. 
> In the Perl
>implementation, that is not appropriate.  Use the built-in scalars ($1, $2 ...) 
>instead.  Backslash
>backreferences are used within the scanning portion of the regex, but not in the 
>replqacement
>string.
>
>Please read:
>perldoc perlre

Thanks for the pointer, Joseph. Indeed, I'm not yet up to speed on
accessing perl-doc, there is quite a lot. ;-)

Bye,
// George

-- 
GEORGE GEORGALIS, System Admin/Architect    cell: 646-331-2027    <IXOYE><
Security Services, Web, Mail,            mailto:[EMAIL PROTECTED] 
Multimedia, DB, DNS and Metrics.       http://www.galis.org/george 


-- 
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