I have a sentence. My task is to find out whether the articles A and An are properly used. if a followed by a vowel , replace it with an (like replace a apple with an apple) and vice versa replace an dog with a dog. can you please tell me the code
I am with basic level of PERL and wrote the following piece which did not give the desired result
$string =~ (s/a (a|e|i|o|u)/an /g);
print "\n$string\n";
Do we need to use loops and sub strings for this