CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: General Discussions: General Questions: Cannot execute perl script in Mac OS X using $./script_name: Edit Log

New User

Jun 11, 2008, 1:13 PM

Views: 7568
Cannot execute perl script in Mac OS X using $./script_name

Hi, I hope you can help me, I looked for an answer in many places and I couldn't find an answer.

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)

Edit Log:
Post edited by roger (New User) on Jun 11, 2008, 1:23 PM

Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives