http://www.perlmonks.org?node_id=61228


in reply to Regex Pattern Problem

If you want to create a new array from the old you may want to try;
my @good_stuff = grep (/^\d{5,}$/, @stuff);
You may also want to look at; Item 12: Use foreach, map and grep as appropriate in Effective Perl Programming.

Get Strong Together!!