in reply to Re: Text strangeness after using SMB to get a file
in thread Text strangeness after using SMB to get a file

Or you could just use:

perl -i.bak -pe 's/\r\n/\n/' *

Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a yourname@perl.me.uk? Just ask!!!

Replies are listed 'Best First'.
Re^3: Text strangeness after using SMB to get a file
by jimbus (Friar) on Sep 11, 2005 at 02:41 UTC

    So instead of:

    chomp($csvLine);

    I could do:

    $csvLine =~ s/\r\n//;

    ?

    Never moon a werewolf!

      If you know it's always in DOS format.

      Walking the road to enlightenment... I found a penguin and a camel on the way.....
      Fancy a yourname@perl.me.uk? Just ask!!!