Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: (OT) Fixing Line Endings

by throop (Chaplain)
on Nov 30, 2006 at 23:33 UTC ( #587079=note: print w/replies, xml ) Need Help??


in reply to Re: (OT) Fixing Line Endings
in thread (OT) Fixing Line Endings

> ftp usually starts up in ASCII mode

Perhaps the files were in a .tar or .zip?

Would there be a similar problem when moving Perl files en masse from *nix to Windows?

Replies are listed 'Best First'.
Re^3: (OT) Fixing Line Endings
by swampyankee (Parson) on Dec 01, 2006 at 16:00 UTC

    >> ftp usually starts up in ASCII mode

    As I said, my experience has been that ftp usually starts up in ASCII mode. I believe that some ftp daemons can be configured to default to binary mode. Since most of the traffic is likely to be binary, doing so would make a good deal of sense.

    >> Perhaps the files were in a .tar or a .zip?

    From the way Ovid's original post was worded, it didn't seem so.

    >> Would there be a similar problem when moving Perl files en masse from *nix to Windows?

    Well, I know that text files can lose their end-of-record markers, turning a multi-line text file into a very long single line. I don't know whether Perl's parser will recognize \n vs \r\n as an end of line marker. It may, which could result in a perfectly valid Perl program that looks like a very long one-liner.

    emc

    At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.

    —Igor Sikorsky, reported in AOPA Pilot magazine February 2003.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://587079]
help
Chatterbox?
[Corion]: perldigious: That seems to be more the export and likely it's the recipients of that export that like the titles changes
[Corion]: ... "changed"
[Corion]: I usually expect fixed header names, but am sometimes lenient in the order of columns. But changing the report titles often sounds to me as if you are not the sole consument of the export ;)
[shmem]: perldigious: as always - if it ain't broke, don't fix it. Ther must be a very compelling reason for changing column names in a database. Those are rare.
[Corion]: If you have whitespace in the column names in the database, whap the DBAs ;)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-05-25 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?