@digits = map { $_ =~ m/[0-9]/g ? $_ : () } $list; [download]
In reply to using map by Anonymous Monk