Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Useless/Interesting Error Messages

by itub (Priest)
on Mar 04, 2005 at 13:46 UTC ( #436571=note: print w/replies, xml ) Need Help??

in reply to Useless/Interesting Error Messages

I'm guilty of that one. I often have something like this:
if ($x == 1) { # do something } elsif ($x == 2) { # do something else } else { confess "should't be here!" }

The idea is that I'm assuming that the subroutine got called with the right $x, but I leave that exception just in case.

Replies are listed 'Best First'.
Re^2: Useless/Interesting Error Messages
by wazoox (Prior) on Mar 07, 2005 at 16:57 UTC
    reminds me of some of my code :
    else { # we should extract the data to some temporary space # and migrate it as we can # for now we just fail gracefully... :( &ExitOnError( $WarningMes.="[$$] FATAL : can't migrate (missing featur +e!\n", $rows{JOBID}); }
    Yeah, some day I'll have to write that missing part ;)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://436571]
[marto]: ah, so this is payback :P
[LanX]: problem with booking venues is that you only know the number of participants a week in advance. ..
[marto]: I guess most cities have areas similar to this, I tend not to mind personally, but would not go out of my way to head down that way
[marto]: it'll probably be fine.
[marto]: LanX: I appreciate that, it's honestly a difficult thing, a fine balance
[marto]: I'm sure it'll be fun :)
[marto]: of course I can take you to some of the best/worst bars in Glasgow ;)
[LanX]: is Glasgow that city where catholics and protestants fight in bars? ; )
[marto]: not really, but pick your side, we'll visit some real dumps

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2017-12-14 15:56 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (396 votes). Check out past polls.