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 ( #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.


Comment on Re: uninitialized string variable
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
Node Status?
node history
Node Type: note [id://855017]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2014-12-26 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (165 votes), past polls