Suppose I have a string, and an array as follow:

```
my $str = "currentStringwithKey<i>";
my @arr = ("1", "2");

```

So, is there any better way to quickly replace the string with every value in the array, rather than using for loop, and put the output of each replacement into new array.

My expect output was:

```
my @outputArray = ("currentStringwithKey1", "currentStringwithKey2");

```