in reply to Re: manipulating array (TMTOWTDI!)
in thread manipulating array

I don't like how it not only clobbers @data, but relies on it. The grep could be replaced with:
map { local $_ = $_; s/^A\d+ // ? $_ : () }