in reply to non-greedy piecewise matching

What's wrong with the much simpler s/\.xml/.xml\n/g?

Replies are listed 'Best First'.
Re^2: non-greedy piecewise matching
by mifflin (Curate) on Aug 02, 2007 at 17:02 UTC
    Nothing, in fact , that's the way i did it because I needed to get the files fixed now. I was just trying out piecewise matching becuse I've never done it before.
    I've been reading "Perl Best Practices" and was seeing if I could implement something like what was shown on pages 257-258.