I've finally managed to get an example of when Cirrus loses it's way in some Perl comparisons, which I've seen a few times in our own Perl code ! Note I see this with the Linux version, but I've proved it also happens with the Windows version whether the files are in Unix or Windows format.
It's related to having a single quote mark (') in a comment, but it's not just that. Trying with the source files from IPC::Run (see http://search.cpan.org/~rsod/IPC-Run...lib/IPC/Run.pm), I found making a single change in the "Timer.pm" source causes the problem, and I've attached a zip of the Timer.pm and the changed version that shows the problem: (I even converted them to DOS format for you )
Just to be clear -the only difference is a single line added at line 665, but in Cirrus the remainder of the file shows as different. This does not happen (and should not happen) in many other Perl files - eg. the main "Run.pm" in the above package, and that file contains large numbers of single quotes!
Hopefully this example will allow you to debug what actually is getting lost in the comparison code!
It's related to having a single quote mark (') in a comment, but it's not just that. Trying with the source files from IPC::Run (see http://search.cpan.org/~rsod/IPC-Run...lib/IPC/Run.pm), I found making a single change in the "Timer.pm" source causes the problem, and I've attached a zip of the Timer.pm and the changed version that shows the problem: (I even converted them to DOS format for you )
Just to be clear -the only difference is a single line added at line 665, but in Cirrus the remainder of the file shows as different. This does not happen (and should not happen) in many other Perl files - eg. the main "Run.pm" in the above package, and that file contains large numbers of single quotes!
Hopefully this example will allow you to debug what actually is getting lost in the comparison code!
Comment