In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Ken Williams) wrote:

> I see that in MacPerl (not perl for OS X), $Config{startperl} is set to
> 
>      "Perl -Sx \"{0}\" {\"Parameters\"}; Exit {Status}\n#!perl"
> 
> in Config.pm .  I'm not sure what that extra stuff is before the 
> shebang, but when I run a script that contains that (using 
> MacPerl 5.6.1), I just get a perl syntax error.  When I remove 
> it, all is well.
> 
> Can anyone enlighten about what that first line is for?

As noted, it is essentially like the shebang line in Unix, but for MPW.

You can have it ignored from the command line with perl's -x command-line 
switch.

-- 
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/

Reply via email to