Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: More multiplatform perl

by jjdraco (Scribe)
on Nov 15, 2002 at 02:55 UTC ( #213058=note: print w/replies, xml ) Need Help??

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.

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?
      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.

      learning Perl one statement at a time.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://213058]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2021-01-22 14:16 GMT
Find Nodes?
    Voting Booth?