On 2/4/2004 10:27 PM, Markham, Richard wrote:

How can I simply remove all elements in an array, given that the array is global and a procedure defines the elements to where the total
number of elements in this array could be very well be less.


I have tried @array = (); but this seems to affect the arrary in that
it wont take any element assignments afterwards.

Do I need to iterate through each element and blank the out?


@array = ();


is what you want. What kind of assignments are producing errors, and what errors are you getting?

Randy.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to