develooper Front page | perl.perl5.porters | Postings from October 2003

Re: [perl #24202] Perl 5.8.0 regexp anomaly

Thread Previous
From:
Steve Grazzini
Date:
October 14, 2003 17:45
Subject:
Re: [perl #24202] Perl 5.8.0 regexp anomaly
Message ID:
20031015002000.GI10061@grazzini.net
On Tue, Oct 14, 2003 at 03:42:47AM -0000, mario@anchor.sps.mot.com (via RT) wrote:
> This regex is  /^\s*(.*?)\s*(:+|%+|@+)\s*(.*?)\s*$/  and worked fine in our
> older version of perl (5.005).  Now, with both 5.8.0 on Solaris and 5.8.1
> on Linux, there is some odd behavior.

Thanks for the report, but this is actually correct behavior.

  1) @arrays are always interpolated in regexes (since 5.8.0)
  2) @+ is a special regex variable (since 5.6.1)

-- 
Steve

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About