print("$1:") while ('abcdefgh' =~ /(.)/g); a:b:c:d:e:f:g:h: print("$1:") while ('vowels' =~ /([aeiou])/g); o:e: