Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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.

jjdraco
learning Perl one statement at a time.


Comment on Re: More multiplatform perl
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.
      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.
      Have you done the unix command  chmod +x on the file that stores the perl script with the shebang line?
        Yep.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2014-12-27 11:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls