General Win32-Specific Mistakes

One of the most obvious differences between the UNIX and Win32 platforms is file paths. Any UNIX user can tell you that there is only one root with many subdirectories. All hard drives, network shares, floppy drives, and any other external media storage devices are mounted as subdirectories under the root. Because Perl was originally designed to work under the UNIX platform, this is what Perl expects.

The Win32 world, however, uses drive letters to designate a storage device. This, of course, limits the number of possible drives to 26 (A: through Z:). This does not include network shares that are not mapped to a drive letter.

Another difference between the two platforms is that UNIX uses a forward slash (/) to ...

Get Win32 Perl Programming: The Standard Extensions, Second Edition 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.