develooper Front page | perl.perl5.porters | Postings from June 2001

Re: [ID 20010612.001] out of memory during regex compilation

Thread Previous | Thread Next
From:
Robin Barker
Date:
June 12, 2001 02:41
Subject:
Re: [ID 20010612.001] out of memory during regex compilation
Message ID:
200106120941.KAA29074@tempest.npl.co.uk
 

> 
> the following regex compiled and ran without problems under several
> previous versions but now generates an "Out of memory!" error
> message during compilation, even if it is the only statement in a
> script:
> 
> 	$_[0] =~ s/^((?:[^\n]*\n){11})( {8})@@.{39}/$1$2/m;
> 

This is fixed in perl5.6.1.

You probably want to replace @@ by \@\@,
as (I think) @@ will include array @.

Robin

-- 
Robin Barker                        | Email: Robin.Barker@npl.co.uk
CMSC, Building 10,                  | Phone: +44 (0) 20 8943 7090
National Physical Laboratory,       | Fax:   +44 (0) 20 8977 7091
Teddington, Middlesex, UK. TW11 OLW | WWW:   http://www.npl.co.uk

Thread Previous | Thread Next


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