http://www.perlmonks.org?node_id=490966


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

So instead of:

chomp($csvLine);

I could do:

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

?

Never moon a werewolf!

Replies are listed 'Best First'.
Re^4: Text strangeness after using SMB to get a file
by ghenry (Vicar) on Sep 11, 2005 at 06:51 UTC

    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!!!