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

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.

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://855017]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (13)
As of 2017-11-21 14:55 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (304 votes). Check out past polls.