in reply to Re: Setup problem
in thread Setup problem

Your advice about ftp binary mode is wrong. When you transfer a win32-ish text file in binary mode, the splatline is seen as "#!/usr/bin/perl\r". There is no such executable file, resulting in a "File not found" error. ASCII mode does line end translation and prevents such errors.

After Compline,

Replies are listed 'Best First'.
Re^3: Setup problem
by Rhys (Pilgrim) on Sep 05, 2004 at 22:10 UTC
    This is only true if the file was originally created on a Win32 system. Wordpad (and maybe Notepad) can correctly edit a UNIX-style text file (sans \r) without mangling it, as the original script itself suggests, and the author says she did.

    I've have no end of trouble transferring things in ASCII mode. The only time I've used any mode other than binary was when I sent a text file to a VAX using EBCDIC mode (bleh!). If I have to do some file cleanup - whether by using the 'pico cheat' or a cleanup Perl script - that's fine, but I'd rather do it myself than have my file transfer program doing things for me.

    Which is why I use Linux and write my own Perl code. :-) I don't do everything myself, but I want the option.

    NOTE: I sent e-mail to the author of the original post shortly after she posted it. No reply yet, and AFAIK, she only came back to the site once or twice to see if there were any answers.