Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: uninitialized string variable

by sundialsvc4 (Abbot)
on Aug 13, 2010 at 22:43 UTC ( [id://855017]=note: print w/replies, xml ) Need Help??


in reply to uninitialized string variable

Unfortunately, you usually can’t guarantee the quality of the input data that you are being asked to process.   Furthermore, it might or might not be “okay” to “just skip” the bad ones.

Ex minimis, you will need to trap the exceptions that may occur, and attempt to recover gracefully.   More likely, you will have to process the input files twice... first to verify data integrity, then to process it.

Replies are listed 'Best First'.
Re^2: uninitialized string variable
by apl (Monsignor) on Aug 14, 2010 at 14:31 UTC
    At the very least, the first step to debugging would be for the OP to print out (delimited) what was read, what the contents of $data looked like, etc.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-03-28 10:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found