in reply to Re: issue with LF & CRLF
in thread issue with LF & CRLF

sample data from the csv.. these should be two lines but they are split into three. the first line is okay.. but 2 and 3 should be one line

1)  "Networking Hardware ","MDUSR226    ","10 Gigabit LR Networking TAP            ","USR4516             ","USRobotics                    ",363.33,454.17,0
2) "Networking Hardware ","MDUSR227 ","Tap Rackmount for 3 units 3) ","USR4500-RMK ","USRobotics + ",43.33,54.17,0
when i print the dumper i am only geeting line before the error
$VAR1 = { 'manufacturer_url' => '', 'eancode' => '', 'model' => 'MDUSR226', 'availability' => 1, 'longsummary' => '', 'manufacturer_model' => 'USR4516', 'category_id' => '198', 'icecat_prodid' => 0, 'manufacturer_id' => '49', 'weight' => 0, 'category' => 'Networking Hardware', 'vendor_id' => 7, 'quantity' => '0', 'description' => '10 Gigabit LR Networking TAP', 'image' => 'product_noimage.gif', 'shortdesc' => '', 'manufacturer' => 'US Robotics', 'price' => '377.8632', 'title' => '10 Gigabit LR Networking TAP', 'shortsummary' => '', 'product_url' => '' };

Replies are listed 'Best First'.
Re^3: issue with LF & CRLF
by Anonymous Monk on Aug 07, 2013 at 02:24 UTC

    sample data from ...

    That is not a Dumper-ing of a raw file -- that doesn't preserve the magic bytes

    Try  perl -MData::Dump -MFile::Slurp -e " dd scalar read_file shift, { qw/ binmode :raw / }; "  tenlinefile > tenlinefileasperl.pl