Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re (tilly) 2: Parse/Verify CSV files

by tilly (Archbishop)
on Nov 07, 2001 at 20:12 UTC ( #123838=note: print w/replies, xml ) Need Help??


in reply to Re: Parse/Verify CSV files
in thread Parse/Verify CSV files

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://123838]
help
Chatterbox?
[marto]: I've opted for a day off later on, rather than pay. I only have to do about 45 mins work for the client, but do need to hang around
[Corion]: marto: Even better ;)
[marto]: and I'm off next week1
[Corion]: Whee! ;)
[Corion]: I was away last week already, so I know how good a week off is ;))
[Discipulus]: a barter with your time (above the poorline time is always better than money)

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2017-02-28 10:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (399 votes). Check out past polls.