summaryrefslogtreecommitdiff
path: root/lib/AutoLoader.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AutoLoader.pm')
-rw-r--r--lib/AutoLoader.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/AutoLoader.pm b/lib/AutoLoader.pm
index ad6bc4013b..564aeb1276 100644
--- a/lib/AutoLoader.pm
+++ b/lib/AutoLoader.pm
@@ -12,7 +12,7 @@ BEGIN {
require Exporter;
@EXPORT = @EXPORT = ();
@EXPORT_OK = @EXPORT_OK = qw(AUTOLOAD);
- $is_dosish = $^O eq 'dos' || $^O eq 'os2' || $^O eq 'MSWin32';
+ $is_dosish = $^O eq 'dos' || $^O eq 'os2' || $^O eq 'MSWin32' || $^O eq 'NetWare';
$is_epoc = $^O eq 'epoc';
$is_vms = $^O eq 'VMS';
$is_macos = $^O eq 'MacOS';
@@ -57,7 +57,11 @@ AUTOLOAD {
unless ($filename =~ m|^/|s) {
if ($is_dosish) {
unless ($filename =~ m{^([a-z]:)?[\\/]}is) {
- $filename = "./$filename";
+ if ($^O ne 'NetWare') {
+ $filename = "./$filename";
+ } else {
+ $filename = "$filename";
+ }
}
}
elsif ($is_epoc) {