3 ms·
> I can run THE SAME CODE on DOS, BeOS, Amiga, Atari ST, any of the BSDs, Linux distros, macOS, OS X, Windows, HP/UX, SunOS, Solaris, IRIX, OSF/1, Tru64, z/OS,
by sigzero 1y ago
> I can run THE SAME CODE on DOS, BeOS, Amiga, Atari ST, any of the BSDs, Linux distros, macOS, OS X, Windows, HP/UX, SunOS, Solaris, IRIX, OSF/1, Tru64, z/OS, Android, classic Mac, and more.
No, you really can't. Not anything significant anyway. There are too many deviations between some of those systems to all you to run the same code.
- maxlybbert 1y agoHonestly, the main difference I run into is just file paths, and that’s easy to sidestep ( https://perldoc.perl.org/File::Spec https://perldoc.perl.org/File::Spec ). There are differences, but they’re usually esoteric ( https://perldoc.perl.org/perlport#PLATFORMS https://perldoc.perl.org/perlport#PLATFORMS ).
- cestith 1y agoYes, I really can, and with the same number or fewer OS-specific checks than the equivalent C program.