Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Setup problem

by Zaxo (Archbishop)
on Sep 05, 2004 at 15:29 UTC ( #388619=note: print w/replies, xml ) Need Help??


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,
Zaxo

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://388619]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2021-01-22 05:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?