Y
y
I am unable to run scripts on OSX. Here is what I did:
I created a file script (no extensions) as follows:
#!/usr/bin/perl
echo "Hello"
And then I save it. After that I go to my shell and try running this
file and I get the following message:
bash: /Users/Y/script: /usr/bin/perl: bad interpreter: Permission
denied
Any idea what I am doing wrong, and how I can fix this?
I created a file script (no extensions) as follows:
#!/usr/bin/perl
echo "Hello"
And then I save it. After that I go to my shell and try running this
file and I get the following message:
bash: /Users/Y/script: /usr/bin/perl: bad interpreter: Permission
denied
Any idea what I am doing wrong, and how I can fix this?