Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: Data validation and blank spaces in tab formatted csv file

by Ma (Novice)
on Oct 24, 2013 at 17:45 UTC ( [id://1059525]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1059525]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found