From ed79a026b5aec9cc3f786c2971aa15a4b21f396c Mon Sep 17 00:00:00 2001 From: Olaf Flebbe Date: Thu, 21 Sep 2000 01:16:26 +0200 Subject: Epoc update Message-ID: <26423.969484586@www10.gmx.net> p4raw-id: //depot/perl@7124 --- lib/AutoLoader.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/AutoLoader.pm') diff --git a/lib/AutoLoader.pm b/lib/AutoLoader.pm index c26db72394..af33ee80f8 100644 --- a/lib/AutoLoader.pm +++ b/lib/AutoLoader.pm @@ -4,6 +4,7 @@ use 5.005_64; our(@EXPORT, @EXPORT_OK, $VERSION); my $is_dosish; +my $is_epoc; my $is_vms; BEGIN { @@ -11,6 +12,7 @@ BEGIN { @EXPORT = @EXPORT = (); @EXPORT_OK = @EXPORT_OK = qw(AUTOLOAD); $is_dosish = $^O eq 'dos' || $^O eq 'os2' || $^O eq 'MSWin32'; + $is_epoc = $^O eq 'epoc'; $is_vms = $^O eq 'VMS'; $VERSION = '5.57'; } @@ -51,7 +53,11 @@ AUTOLOAD { $filename = "./$filename"; } } - elsif ($is_vms) { + elsif ($is_epoc) { + unless ($filename =~ m{^([a-z?]:)?[\\/]}is) { + $filename = "./$filename"; + } + }elsif ($is_vms) { # XXX todo by VMSmiths $filename = "./$filename"; } -- cgit v1.2.1