On Fri, 19 Oct 2001 09:27:50 -0400
Aaron Sherman <[EMAIL PROTECTED]> wrote:

> > I am implementing a textbook algo in Perl (the textbook has
> > it written in C++) and have realized that if undef was to
> > numericize to NaN instead of 0, there are a lot of uninitialization
> > errors that would get caught.  
> >     use strict vars;
> > does not recognize use of new array indices as unitialized variables.
> Yes, but do you really want to break:
>       $z[0] = 50;
>       $z[2] = 20;
>       @x = @y[@z];

In your code, should @x contain (@y[50,0,20]) or (@y[50,20]) or
(@y[50,undef,20]) ?

Sam.

Reply via email to