in reply to Re^3: Use module only if it is in use
in thread Use a module only if it is in use

Is it safe to asume that double colons in module names get always translated into slashes ("::" -> "/") instead of backslashes or whatever is used by the OS for subdirs?
No, it's not safe to assume that.

IMO it is safe to assume that for checking %INC. It always worked on MacPerl, on the pre OSX Macintosh, where the system's path separator is a ":". It most definitely is safe on Windows perls, too. If there are exceptions, I haven't heard of them, yet.

Replies are listed 'Best First'.
Re^5: Use module only if it is in use
by ikegami (Patriarch) on Sep 02, 2009 at 19:29 UTC

    VMS would be the other non-unix system, and it uses "/" as well, as far as I can remember.

    Core modules such as if rely on "/" being the separator.