To empty an array in Perl, simply define the array to be equal to an empty array:
# Here's an array containing stuff.
my @stuff = ("one", "two", "three");
@stuff = ();
# Now it's an empty array!
Next: Perl Concatenate: Joining Strings and Arrays in Perl
Previous: Perl Array: Quick Guide to Arrays In Perl
Click here to see more in "Perl Articles"