or download this
C:\Packages\Encode-Detect-1.01>perl Makefile.PL CC="cl -TP"
# running Build.PL --config cc=cl -TP
...
Temp\compilet.dll'
Creating new 'MYMETA.yml' with configuration results
Creating new 'Build' script for 'Encode-Detect' version '1.01'