Jun 11, 2008, 1:13 PM
Hi, I hope you can help me, I looked for an answer in many places and I couldn't find an answer.
Cannot execute perl script in Mac OS X using $./script_name
When I try to execute a perl script in the shell as $./script_name the shell tells that "cannot execute binary file".
However, if I run it as $perl script_name , it works OK.
File permissions are set to 755.
#!/usr/bin/perl line is also correct ($whereis perl -> /usr/bin/perl)
I cannot figure out what is wrong, as some scripts that I wrote some time ago run equally well with $script_name and with $perl script_name
I will really appreciate your help!!
(This post was edited by roger on Jun 11, 2008, 1:23 PM)