in reply to More multiplatform perl

I'm sorry, could you rephrase that. That didn't make any sences to me. I just tried using jsegal's suggestion and it worked for me.

jjdraco
learning Perl one statement at a time.

Replies are listed 'Best First'.
Re: Re: More multiplatform perl
by the pusher robot (Monk) on Nov 15, 2002 at 03:03 UTC
    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.
      Have you done the unix command  chmod +x on the file that stores the perl script with the shebang line?
        Yep.
      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.