View Full Version : Perl on Windows.
Hi.
I'm trying to run some perl scripts on my system (with phpdev), and I just want to know what major changes need to be made to the scripts for them to run on a wondows server. I've always worked with unix before, so this is new for me.
Thanks
Paths are different. Windows uses backslashes \ while *nix variants use forwardslashes /.
The shebang won't work (#!/usr/bin/perl) because Windows does not use a Shell for this, such as nix does. It used to be one would need to do special MS-DOS batch files to get DOS to read and act on the shebang, but as of the later releases of PERL for Windows, that doesn't need to happen since PERL sets up registry entries for itself.
The differences or slim, though (other than stability and clumsiness, MS and open-source items don't play well together, especially as a server), but the main differences you'll have to remember are when you reference files, directory paths, and include/require locations.
Ok thanks. That works for me :)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.