Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: What's #! got to do with it?

by b10m (Vicar)
on Jan 16, 2004 at 21:19 UTC ( [id://321909]=note: print w/replies, xml ) Need Help??


in reply to What's #! got to do with it?

The shebang specifies what kind of program needs to interpret the code. Besides Perl, this can be python, bash, sh, etc. Dropping the shebang, makes your shell clueless. What to do with the code?

Presumably, you tried $ perl script instead of $ ./script. In the first example, you just feed perl the script. In the second case, you tell your shell: "Hey, execute this script!". In that case, it would be nice if your shell knew what kind of code it was :)

--
b10m

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-03-28 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found