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

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

Thread Previous | Thread Next
Mike Guy
June 12, 2001 11:21
Re: [ID 20010612.001] out of memory during regex compilation
Message ID:
H.Merijn Brand <> wrote
> On Tue 12 Jun 2001 14:14, Mike Guy <> wrote:
> > +C<join $", @array>.    "Punctuation" arrays such C<@+> are not
> > +interpolated.
> Which IMHO must be considered a bug to be solved, and not to be documented, so
> we end up being backward incompatible when finaly `fixed'

I don't necessarily disgaree.   I was just documenting what happens.

But I now find that my documentation wasn't complete.   See third
patch below.   And since there is an easy of interpolating these,
I don't really see any need for "fixing".

Patch applies over my previous two.

Mike Guy

--- ./pod/perlop.pod.orig	Tue Jun 12 18:44:07 2001
+++ ./pod/perlop.pod	Tue Jun 12 19:15:45 2001
@@ -745,8 +745,8 @@
 Interpolating an array or slice interpolates the elements in order,
 separated by the value of C<$">, so is equivalent to interpolating
-C<join $", @array>.    "Punctuation" arrays such as C<@+> are not
+C<join $", @array>.    "Punctuation" arrays such as C<@+> are only
+interpolated if the name is enclosed in braces C<@{+}>.
 You cannot include a literal C<$> or C<@> within a C<\Q> sequence. 
 An unescaped C<$> or C<@> interpolates the corresponding variable, 

End of patch

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About