I have run perl scripts on a sun box from the command line using the Korne
shell.  Using that configuration doesn't need the extra eol characters
stripped.

What configuration have you seen which requires stripping?

> Behalf Of Ned Konz
>
>
> James E Keenan wrote:
> >
> > I'm having trouble getting my (first-ever real-world) Perl
> script to run as
> > successfully on a Unix server as it does on my own Win98 system.
>
> > I then FTP the files to a server running Apache and Perl
> 5.005_02 "built for
> > rhapsody."  The server is actually a Mac OS X server.  I telnet
> > to that server and type:
> >
> >     bash-2.02$perl abc0.pl
> >
> > I get an error message reading:
> >
> >      on #! line at abc0.pl line 1.   (Note that the screen
> prints a single
> > wordspace before "on #!....")
>
> Have you made sure that the scripts don't have CR characters in them?
>
> Unix expects to see just newline characters (0x0a), not CR/LF pairs
> like DOS likes.
>
> You may be able to fix this by just choosing text mode in your ftp
> transfer.
>
> You can see by doing "od -c abc0.pl | more"
>


---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to