APM: global scope array doesn't seem to be global

jeremy jeremyb at univista.com
Wed May 7 08:43:30 CDT 2003


No, I was not intending to initialize @repeat with one undef element.
Thanks for pointing that out.


On Wed, 2003-05-07 at 05:36, Mike Stok wrote:
> On 6 May 2003, jeremy wrote:
> 
> > Sometimes it just takes talking about it...
> > 
> >   I had put 'my @repeat = undef' on lines 642 and 511.
> >  where it should have been '@repeat = undef'.
> 
> Why do you assign undef to the array.  Do you really mean to initialise it 
> to a single element array containing undef?
> 
>   my @repeat;
> 
> or
> 
>   my @repeat = ();
> 
> will give you a new empty array.
> 
> Mike




More information about the Austin mailing list