in reply to Re^2: using a variable as a filehandle
in thread using a variable as a filehandle
print("$1:") while ('abcdefgh' =~ /(.)/g); a:b:c:d:e:f:g:h: print("$1:") while ('vowels' =~ /([aeiou])/g); o:e:
\G is similiar to ^, but refers to where the last match left off.
print("$1:") while ('oiseau' =~ /\G([aeiou])/g); o:i:
|
|---|