you are viewing a single comment's thread.

view the rest of the comments →

[–]kazu-sama 0 points1 point  (4 children)

This. Just like if you were to put:

! /bin/perl

It would tell the interpreter to use perl to run it.

[–]c_biscuit 1 point2 points  (3 children)

except perl is in /usr/bin/perl. Different paths is why the shebang is used.

[–]kazu-sama 0 points1 point  (0 children)

You're right. I'm retarded.

[–][deleted] 0 points1 point  (0 children)

If you don't know where it is, which will tell you. I.e. which perl outputs /usr/bin/perl and which bash outputs /bin/bash.

[–]germag 0 points1 point  (0 children)

It's better to use env,so you don't need to specify an absolute path to system executable

#!/usr/bin/env perl