From: "Chas. Owens" <[EMAIL PROTECTED]> > On Sun, Nov 23, 2008 at 19:39, Rob Dixon <[EMAIL PROTECTED]> wrote: > snip > >> All Perl functionality works on UNIX. Some Perl functionality does > >> not work on Windows. > > > > No, not all Perl functionality works on all Unix platforms. You are as > > likely to > > find a compatibility issue moving from one Unix to another Unix as from > > Unix to, > > say, VMS or Windows. > > > > It is misleading to suggest that Perl on Unix is fine, and Perl anywhere > > else is > > risky. It is usually a simple matter to write portable software, as > > described in > > > > perldoc perlport > snip > > Alright, I have to call bull on this. There are a total three > functions that may not behave in the expected way between the UNIXes: > atan (HPUX does some non-standard things), sockatmark (it is fairly > new and may not exist on some UNIXes), and system (Does not > automatically flush output handles on some platforms). Compare that > to Win32; I lost count of the caveats and warnings after thirty or so. > The big ones being fork, open, and kill.
fork() and kill() is just as OS specific as Win32::Process is. One just got a builtin, the other did not. One presents itself as if it was general, the other says clearly it's OS specific. If you wrote a list of caveats from the point of a Win32 developer it would be just as long. And would list the same things, just with different wording. fork() is not THE or even THE ONLY way to create processes, it's THE UNIX way to create processes. > Then start to look at what > modules simply won't work on Win32 due to the lack of supporting > libraries. If you start your development on Unix, you notice the modules that work under Unix and do not under Win32 and never even notice those that work under Win32 and not under Unix. Besides, those that are Win32 specific prettymuch always say so in the name. The unix ones do not bother. "Everyone's using Unix and if he doesn't he bloody well should!" > I have moved Perl scripts amongst HP-UX, AIX, Solaris, multiple > flavors of Linux, various BSDs, OS X, and probably a couple I am > forgetting and never had to change anything but a few arguments to > external commands. I have also ported Perl code to a few Win32 > platforms (Win9X, WinNT, and WinXP) and it was generally an uphill > fight (mostly due to the lack of support for modules, but also because > of the whole drive letter crap). I've moved between California, Colorado, Kansas, North Carolina, Massachusetts and probably I couple I am forgetting and never had to change anything but a few addresse for snailmail. I have also visited France and it was an uphill fight. My gosh them bastards speak french! Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/