in reply to Re: More multiplatform perl
in thread More multiplatform perl

If I type in 'perl' from the shell, it executes the correct version. If I run a script with a shebang line that points to perl, it attempts to execute the perl script with ksh instead of executing the perl binary.

Replies are listed 'Best First'.
Re: Re: Re: More multiplatform perl
by graff (Chancellor) on Nov 15, 2002 at 05:28 UTC
    Have you done the unix command  chmod +x on the file that stores the perl script with the shebang line?
      Yep.
Re: Re: Re: More multiplatform perl
by jjdraco (Scribe) on Nov 15, 2002 at 03:19 UTC
    so if you tried
    #!/usr/bin/perl use strict; use warnings; print "Hello World!!\n\n"
    it would try and run ksh? assuming perl is in /usr/bin/perl I'm no expert but that sounds like a problem with your system setup somewhere. its the system that looks at the shebang line and decides what to run. if its calling ksh then...I don't have a clue.


    jjdraco
    learning Perl one statement at a time.