in reply to Re^3: Data validation and blank spaces in tab formatted csv file
in thread Data validation and blank spaces in tab formatted csv file

Thank you. It work fine when the field has value. But when the field contains blank spaces, I am getting this error message: Use of uninitialized value $pending_move_out_dt in concatenation (.) or string at pp6.txt line 52, <FH> line 3. pending_move_out_dt = Use of uninitialized value $pending_move_out_dt in concatenation (.) or string at pp6.txt line 64, <FH> line 3.
  • Comment on Re^4: Data validation and blank spaces in tab formatted csv file

Replies are listed 'Best First'.
Re^5: Data validation and blank spaces in tab formatted csv files
by Tux (Canon) on Oct 25, 2013 at 06:24 UTC

    Which is highly unlikely to be from my example code snippets: $csv->print (...) won't warn on undefined values. I see the message show <FH>, which - to me -indicates that you used a global files descriptor (open FH, ">", ...; instead of open my $fh, ">", ...;) and I bet that you are using it in a print statement.


    Enjoy, Have FUN! H.Merijn