Nathan Wiger wrote:
> The only thing that *really* makes me nervous about the RFC is this
> part:
>
> > >   @d = @b * @c;   # Returns (2,8,18)
> > >
> > > If the lists are not of equal length, an error is raised.
>
> I really don't like the "error is raised" part, at least not by default.
> Maybe "use strict 'ops'" could turn this on. I think by default arrays
> should DWIM in this context, whether it be auto-padding with undef's,
> 1's, or whatever we decide.

This bit has changed in the last version. Previous versions specified that
the smaller arrays should act as if they were the same size as the larger,
but were padded with undefs (but no actual autovivification would occur on
the array itself).

Maybe if ':bounds' (RFC 203) is set on both arrays, then the exception
behaviour occurs, otherwise the implicit padding occurs...


Reply via email to