First Lesson in Portability
Portability: It's one of the things that Perl is good at. Whether your Perl code is run on a VMS machine, UNIX, a Macintosh, or under MS-DOS, there's a very high probability that the Perl code you write will work seamlessly under any architecture that Perl supports. When you need to interact with the underlying operating system, such as when you're doing file I/O, Perl tries to hide all the nitty-gritty details for you so that your code will just work.
Note
Some of the reasons that Perl is so portable are discussed at great length in Hour 16, "The Perl Community."
Sometimes, though, there's a limit to what Perl can hide from you.
Throughout this hour, the examples have read "do this for Windows and DOS, do this for ...
Get Sams Teach Yourself Perl in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.