----- Original Message ----- 
From: "Jason Pepas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 05, 2004 3:33 PM
Subject: [Siglinux] perl question


> here's a perl question for the list.
>
> how does one resolve the ambiguity between octal references and
> backreferences followed by numbers?
>
> example:
>
> to replace foobar with fubar, I could use the following:
>
>     s/foo(bar)/fu\1/
>
> but let's say I wanted to replace it with fubar01:
>
>     s/foo(bar)/fu\101/
>
> unfortunately, \101 is interpreted as octal 101 instead of backreference
> 1 followed by 01.
>
> any ideas?

I am NOT a hand in perl, but this looks like you'll have to do the
substitutions separately.

JimW

_______________________________________________
Siglinux mailing list
[EMAIL PROTECTED]
http://machito.utacm.org/mailman/listinfo/siglinux

Reply via email to