3

perldoc perlrun contains this example:

 #!/bin/sh #! -*-perl-*- eval 'exec perl -x -wS $0 ${1+"$@"}' if 0; 

But I don't understand why it might be needed.


For example, if my perl interpreter has been installed in /home/user/folder/../../.. and I use such a construct — will my script work?

0

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.