in reply to non-greedy piecewise matching

mifflin:

Howzabout:

for (split /\.xml/,$data) { print $_ , ".xml\n"; }

...roboticus