On July 6, 1999 at 21:41, Gunnar Hjalmarsson wrote:

> > What does the following command output:
> > 
> >     perl -e 'print $^O, "\n";'
> 
> Since I do not have shell access to my server, I run the following
> commands in a perl script instead:
> 
>       $output = system (perl -e 'print $^O, "\n";');
>       print $output;
> 
> and it outputs:
> 
>       65280

You are actually printing the return value of system().  However,
the perl -V below gives me what I need to know.

> >     perl -V

> A lot. Here it is:
> 
> Summary of my perl5 (5.0 patchlevel 4 subversion 1) configuration:
>   Platform:
>     osname=bsdos, osvers=2.1, archname=i386-bsdos
---------------^^^
Ugh.

Delete line 67 of your copy of osinit.pl.  It should contain the
following:

              ($^O =~ /dos/i) ||

This expression is part of the windows/msdos check.

It is probably best to make the modification from where you extracted
the tar.gz file, and then do a re-install.

FYI, here is a context diff:

*** osinit.pl.org       Tue Jul  6 13:24:40 1999
--- osinit.pl   Tue Jul  6 13:24:52 1999
***************
*** 64,70 ****
  
      } elsif (($^O !~ /cygwin/i) &&
             (($^O =~ /win/i) ||
-             ($^O =~ /dos/i) ||
              (($tmp = $ENV{'COMSPEC'}) &&
               ($tmp =~ /^[a-zA-Z]:\\/) &&
               (-e $tmp))) ) {
--- 64,69 ----


This should fix your problem until I improve the platform detection
code.

        --ewh

Reply via email to