dracos has asked for the wisdom of the Perl Monks concerning the following question:
My wife recently got a Mac laptop with OSX (Tiger - 10.4.mumble) and I have writen some perl scripts for her. The following example will not run from the command line:
However, adding the -w flag, it will:#!/usr/bin/perl use strict; use warnings; print "Hello World\n";
on execution of the first all I get is#!/usr/bin/perl -w use strict; use warnings; print "Hello World\n";
Adding a "-w" to get things to work is minor. I am just trying to understand what is happening.".: No such file or directory
Any ideas?
P.S. It isn't a execute permision issue the file permision is set to 777.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with running Perl script on Mac OSX
by sgifford (Prior) on May 31, 2006 at 16:11 UTC | |
by dracos (Sexton) on May 31, 2006 at 16:23 UTC | |
|
Re: Problem with running Perl script on Mac OSX
by MonkE (Hermit) on May 31, 2006 at 16:46 UTC | |
by dracos (Sexton) on May 31, 2006 at 18:21 UTC | |
|
Re: Problem with running Perl script on Mac OSX
by roboticus (Chancellor) on May 31, 2006 at 22:29 UTC | |
|
Re: Problem with running Perl script on Mac OSX
by dracos (Sexton) on Jun 02, 2006 at 17:49 UTC |