develooper Front page | perl.perl5.porters | Postings from April 2018

Devel::PPPort with Visual Studio

A. Sinan Unur
April 25, 2018 15:37
Devel::PPPort with Visual Studio
Message ID:
Recent versions of Devel::PPPort on Windows with Visual Studio built
`perl` fail tests in t\mess.t because $0 is interpolated into regex
patterns without the use of quotemeta[1].

In this case, $0 contains `\` as directory separators.

This is necessary, because nmake tries to interpret part of a filename
as a command line argument if it contains `/` characters.

An easy fix is to use \Q$0\E instead of plain $0 in patterns.

Here's a test report:


-- Sinan

[1]: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About