Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Bad Module Code

by CodeJunkie (Monk)
on Jul 11, 2003 at 16:16 UTC ( #273455=note: print w/replies, xml ) Need Help??


in reply to Re: Bad Module Code
in thread Bad Module Code

Yes I totally agree with the principle of error checking obviously, but in this case I don't want it to die if the file is missing or it can't be printed. It is just printing HTML markup out to the browser so if it fails it should be reasonably obvious.

Although having said that, it would be quite nice to print out a message explaining why it didn't work. So I will fix that.

Cheers,
Tom

Replies are listed 'Best First'.
Re: Re: Re: Bad Module Code
by diotalevi (Canon) on Jul 11, 2003 at 17:07 UTC

    No, printing would be the wrong thing. Setting $@, using warn() (or something from Carp, throwing an exception would be better. But certainly don't print().

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2020-05-29 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (166 votes). Check out past polls.

    Notices?