On Wednesday 02 July 2008 03:59:05 Moritz Lenz wrote: > I'd like to get some feedback on this commit regard platform > interoperability. > > I could only test it on linux, so I'm not sure what could break. > (One comment inline in the diff below)
> > + if (@to_unfudge){ > > + my $u = unfudge_some($file_name, 1, @to_unfudge); > > + system qq{diff -u "$file_name" "$u" >> "$out_filename"}; > > This is the line that troubles me most. Will that work on Windows and > MacOS? If not, how could I improve it? Mac OS X should be fine (if we assume people have the developer tools installed, without which how did they get this far?). With regard to Windows, your best bet might be to require Algorithm::Diff or some other utility. Certainly that's easier than relying on the presence of any specific command-line diff utility there. Depending on what you need, you could almost write your own short diff algorithm, if you just want to see differences. -- c