Skip navigation.
Home
Your source for Perl tips, howto's, faq and tutorials
( categories: )

To empty an array:

@array = ();

Please notice that the above method doesn't free the memory already associated with the array; to recover the used memory you must use:

undef @array;