BMaximus has asked for the wisdom of the Perl Monks concerning the following question:

I'm running in to errors in my code that really shouldn't be errors in Perl for it. On my Linux box, croak works as it should. However in SCO OpenServer (Release 5), I get:

syntax error at /Response.pm line 99, near "croak "Can't chdir to $DataDIR: $!\n"" syntax error at /Response.pm line 189, near "croak "Can't open refdata.dat: $!\n"" syntax error at /Response.pm line 190, near "croak "Can't lock refdata.dat: $!"" syntax error at /Response.pm line 215, near "croak "Can't chdir back one directory!: $!\n""

Now the version on my box is 5.6.1 where the version on the SCO box is 5.004_04. Is there that much of a difference where in using croak with 5.004_04 will make a program puke? Where can I find the limitations of this version so I don't keep on correcting my code for the SCO box?

BMaximus

<font size=2">P.S. In case your wondering why I'm developing on a Linux box and moving it over to the SCO box. I hate the shell environment on the SCO box.

Replies are listed 'Best First'.
Re: SCO OpenServer errors
by c-era (Curate) on Dec 20, 2001 at 02:00 UTC
    All I have to say is, I know your pain. You need to upgrade to perl 5.005_x first off. If you are lucky, croak will work. If not, uninstall perl and reinstall it again (don't use a binary image, the os is too sensitive to handle it). I know it sounds strange, but I have c code that I've compiled on the same box, same libs, and same directory (nothing changed) that produced different excutables. As for developing on a sco box, just install your shell, bash/ksh/csh/sh are all ported to sco. Just remember you probably have limited licences, so don't open too may telnet connections ; )
      Unfortunatly all I can do is ask that they install an updated version of Perl. I doubt that this would happen though. I'm thinking that the current binary was install along with the server installation. I'm just the contractor in this one.

      BMaximus