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. And be lucky. Your code wouldn't work if Perl changed the '::' to a '/', because that it would try to divide M by hello("again"), which most likely results in an error.
Perl maps '::' to the appropriate directory separator when it's used as a bareword argument to use and require. But that isn't always.
In reply to Re^3: Use module only if it is in use
by JavaFan
in thread Use a module only if it is in use
by vitoco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |