Is there a faster way for replacing cats with dogs in every string of the array?
Is there a way with a shorter expression, but not necessarily faster?
Is there a way with a shorter expression, but not necessarily faster?
Code:
@temp = map { $_ =~ s/cats/dogs/g; $_ } @temp;
Comment