use Test::Simple tests => 2;
ok(scalar(@{$array_with_things} == 10) ;
@{$array_with_things} = (); # Here's the magic
ok(scalar(@{$array_with_things}) == 0);
That's right it is a way of clearing an array of all elements. I always forget how to do it which is why it's here.