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

The wrong brackets here in => csv { and missing the closing one from csv (

Try this

csv ( in => csv ( # not { in => *INPUT, blank_is_undef => 1, on_in => sub { $_ //= "NULL" for @{$_[1]}; }, ), out => *OUTPUT, eol => $/, );
poj