in reply to map question


Here is another method that may, or may not, be sufficient for your needs. As written, it also changes @numbers however:     my @newArray = map { s/(\d+)/test number $1/; $_ } @numbers;

--
John.