in reply to Re^2: insert null in missing places of csv
in thread insert null in missing places of csv

My impression is that Discipulus's
    perl -lanF',' -e "print join',',map {$_ ? $_ : 'NULL'} @F " testcsvnull.txt
is running under Windoze, and your
    <$ perl -lanF',' -e "print join',',map {$_ ? $_ : 'NULL'} @F " 1.txt
is running under *nix. Fix the quoting as appropriate to your OS shell and give it another try.


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^4: insert null in missing places of csv
by Discipulus (Canon) on Feb 19, 2016 at 17:41 UTC
    is my impression too ;=)

    thanks for defending my -c honorability. Once i used to post oneliners in both quoting flavors but now i became too lazy. Maybe a comment like #warning winz doublequotes can be used.

    The real pity is that is impossible (from what i know) to convince that os to accept another quoting character.

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
Re^4: insert null in missing places of csv
by ukhare (Novice) on Feb 19, 2016 at 18:41 UTC

    PERFECT