[Israel.pm] (no subject)

Omer Zak omerz at actcom.co.il
Thu Mar 16 07:03:04 PST 2006


On Thu, 2006-03-16 at 16:54 +0200, Gabor Szabo wrote:
> 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

One thing, which was missing in the original question:
What result did Dov expect to get?
Without this piece of information, we do not have the vaguest idea what
was really wrong in the RE.
                                                 --- Omer
-- 
MS-Windows is the Pal-Kal of the PC world.
My own blog is at http://tddpirate.livejournal.com/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html




More information about the Perl mailing list