Yeah -- it seems like an issue with older versions of Perl. I tried it with newer versions (5.6.1 & 5.8) and it works as expected.
I wonder what caused it to break in the older versions ... Thanks, -Nilanjan -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Williams Sent: Monday, August 02, 2004 9:09 AM To: [EMAIL PROTECTED] Subject: Re: [Boston.pm] Weird regex behavior? > > -----Original Message----- > From: Ron Newman [mailto:[EMAIL PROTECTED] > Sent: Monday, August 02, 2004 8:21 AM > To: Palit, Nilanjan > Cc: <[EMAIL PROTECTED]> > Subject: Re: [Boston.pm] Weird regex behavior? > > > On Aug 2, 2004, at 8:04 AM, Palit, Nilanjan wrote: > >>In each case, the actual $_ substitution occurs fine. Case A seems to >>behave as expected. However, in case B, somehow $1 & $2 lose their >>value >>once inside the {}. > > > This does not happen when I run your program with perl 5.8.1-RC3 on > MacOS X 10.3.4 . > What version of perl are you using? > Palit, Nilanjan wrote: > This is perl, version 5.004_04 built for i386_linux22 > > Thanks, > > -Nilanjan Works fine with perl 5.8.3 on linux, too. Mike _______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm _______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm