On Feb 4, Markham, Richard said:

>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.

Then you're doing something wrong.

  @array = ();

is the proper way to do it.  Show us your code.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
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