aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xchallenge-254/perlboy1967/perl/ch2.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge-254/perlboy1967/perl/ch2.pl b/challenge-254/perlboy1967/perl/ch2.pl
index b0e4391327..2af8efbfb6 100755
--- a/challenge-254/perlboy1967/perl/ch2.pl
+++ b/challenge-254/perlboy1967/perl/ch2.pl
@@ -23,8 +23,8 @@ use common::sense;
use Test2::V0;
sub reverseVowels ($str) {
- my @v = reverse $str =~ m/(?i)[aeiou]/g;
- ucfirst lc $str =~ s/(?i)[aeiou]/shift @v/egr;
+ my @v = $str =~ m/(?i)[aeiou]/g;
+ ucfirst lc $str =~ s/(?i)[aeiou]/pop @v/egr;
}