Fix path normalization on Windows
Fix path normalization on Windows

In order to find out which files to run our perl syntax check on, we use git
ls-files to get a list of all files and then compare it with Perl::Critic's
all_per_files. Unfortunately all_perl_files returns paths with backwards
slashes on Windows, while git ls-files returns paths with forward slashes. The
only overlap between those two lists were paths that contained no slashes at
all, which means that only setup.pl, test.pl, etc.  were actually syntax
checked.

The root cause is that

    apply { canonpath } qx(git ls-files)

does not work as expected. I don't know why, but it does work when assigning $_
explicitly.

Change-Id: I608445f276761452158a9096dce04539ff273b24
Reviewed-by: Friedemann Kleint <1b9f2592239daaec4856ccc1cfb4d2d55b35fb71@theqtcompany.com>

tsarajar/qtqa,tsarajar/qtqa,tsarajar/qtqa,tsarajar/qtqa