On Tuesday, February 5, 2002, at 12:11 PM, Frank Nospam wrote:
> FWIW, here's the first 4 lines of my script.
>
> #!perl -w
> # use strict;
> $/ = "\012";    # Unix linefeeds
> while ( <> ) {

I think you misunderstood the "make sure your line endings are correct" 
comment.  You don't need to set $/ (it should already be set to \012), 
you need to use an editor like BBEdit or whatever to make sure the line 
endings on the script file itself are Unix format.

The shebang line '#!perl -w', while a little nonstandard, should work 
fine as long as 'perl' is somewhere in the $PATH.  Maybe $PATH isn't set 
properly when dropscripts are run, but I bet it's fine.

  -Ken

Reply via email to