in reply to Re: Better Way of Manipulating Array Elementsin thread Better Way of Manipulating Array Elements
use List::MoreUtils qw( apply ); print join ", ", apply { chomp; s/(d)/new($1)/ } @a; [download]