by Jeremy Canfield | Updated January 25th, 2019
In this example, the @fruit array contains fruits.
my @fruit = qw(orange apple peach pear);
prrint @array; will print each piece of fruit.
orange apple peach pear
The undef operator can be used to remove all of the values from the array. Once undefined, the array will no longer contain any values.