in reply to issue with LF & CRLF

Data::Dump::dd-er up a few lines of input data please

Replies are listed 'Best First'.
Re^2: issue with LF & CRLF
by nafri (Initiate) on Aug 07, 2013 at 01:13 UTC

    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' => '' };

      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