Or even:
my @filtered = grep -d, @ar; [download]
In reply to Re^3: Best way to remove elem of for loop by tobyink in thread Best way to remove elem of for loop by HarryPutnam