Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Parse/Verify CSV files

by Armos (Scribe)
on Nov 07, 2001 at 04:19 UTC ( #123736=note: print w/replies, xml ) Need Help??

in reply to Parse/Verify CSV files

I only glanced at the code and maybe I missed something, but don't forget to close F after the end of your inner loop.


Replies are listed 'Best First'.
Re (tilly) 2: Parse/Verify CSV files
by tilly (Archbishop) on Nov 07, 2001 at 20:12 UTC
    There is no need to close filehandles, Perl will do it for you. It is good style to localize them ahead of time though.

    A far worse error is putting the return in the die statement. When you do that you tell Perl that you are doing all of the formatting of that message. If you simply leave it out then the person fixing your code gets the very handy information of what file and line number the error came from. This kind of context can really speed up debugging a complex program.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://123736]
and the shadows deepen...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2018-02-21 03:45 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (274 votes). Check out past polls.