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

Mike Stok mike at stok.co.uk
Wed May 7 05:36:37 CDT 2003


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

-- 
mike at stok.co.uk                    |           The "`Stok' disclaimers" apply.
http://www.stok.co.uk/~mike/       | GPG PGP Key      1024D/059913DA 
mike at exegenix.com                  | Fingerprint      0570 71CD 6790 7C28 3D60
http://www.exegenix.com/           |                  75D2 9EC4 C1C0 0599 13DA





More information about the Austin mailing list