[Israel.pm] (no subject)

Gabor Szabo szabgab at gmail.com
Thu Mar 16 06:54:30 PST 2006


On 3/16/06, Levenglick Dov-RM07994 <Dov at freescale.com> wrote:
> perl5.8.7 -e '$a="1.2.3.4.5.6.7.8.9.10";$a=~s/(\w+)\.(\w+)\.(\w+)\.(\w+)\.(\w+)\.(\w+)\.(\w+)\.(\w+)\.(\w+)\./\9/;print $a'
> Produces: 910
>
> Why?

because you used \9 instead if $9 in the substitute
Gabor

>
> (It is also the case when running 5.6.1)




More information about the Perl mailing list