in reply to Re: splitting cvs file without line breaks
in thread splitting cvs file without line breaks

using / * instead of / + might result in too many linefeeds being inserted.

And why do you use \r\n insteat of just \n


s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Replies are listed 'Best First'.
Re^3: splitting cvs file without line breaks
by shmem (Chancellor) on May 15, 2007 at 21:11 UTC
    using / * instead of / + might result in too many linefeeds being inserted.

    Agreed.

    And why do you use \r\n insteat of just \n

    Well, that's because... well, er... :-)
    You're right again, probably inserting $/ makes more sense. But I've seen csv files that use "\r\n" as record separator, and "\n" as newlines inside fields.

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}