psychorugger has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks. I already have a ton of applications written for my unix environment, but now I've been asked to write applications to do the same type stuff on the Windows side integrating with AD etc. I know that there are Win32 modules and can write those in Windows, but I'd rather write on one platform and integrate it all into one application if I could. Are there unix modules equivalent to the Win32 modules that I can use? Any suggestions?

Replies are listed 'Best First'.
Re: unix mods for windows
by planetscape (Chancellor) on Apr 27, 2007 at 21:51 UTC
Re: unix mods for windows
by jettero (Monsignor) on Apr 27, 2007 at 21:29 UTC

    If you want them to work pretty much the same on win32 and unix, I'd suggest cygwin if it's possible to use it. Then your stuff will litteraly run the same. Otherwise small changes will be required on various things.

    Other than cyg, I'd suggest using the Tk stuff. I don't like it as well as Gtk personally, but it seems to have better documentation and is more commonly used. Both should run under win32 if I'm not mistaken.

    -Paul

Re: unix mods for windows
by swares (Monk) on Apr 28, 2007 at 06:41 UTC
    You can try searching for Win32 on CPAN. That will provide a list of some of the perl modules available for windows. Ports of some Unix tools to Win32 http://unxutils.sourceforge.net/ Perl Win32 FAQ http://www.perl.com/doc/FAQs/nt/perlwin32faq4.html
Re: unix mods for windows
by cormanaz (Deacon) on Apr 28, 2007 at 17:39 UTC
    Maybe I'm not understanding the question properly, but most of the Perl moduless are cross-platform and work exactly the same way. For a list of tested modules with ppms compiled for windoze see the Activestate Modules Page. You might find that if you install the propoer modules your apps will just work. Wouldn't that be something?

    One thing to watch out for: You have to specify binmode FILEHANDLE when writing binary files.

    Cheers....

    Steve

      Thanks monks for the help, I think I didn't make my question clear though. My fault. I'm wanting to write my Windows Admin perl apps in Unix, and integrate my unix admin application and my windows admin application under one application on Unix. I'll probably web base it with Apache (which I'll also have to figure out). Any suggestions there will be helpful. Are there unix perl modules that can help me write Windows administration apps like setting up exchange boxes, etc? I'm currently writing my apps on Solaris.