Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: your Perl bug Achilles heel

by rhesa (Vicar)
on Dec 06, 2008 at 03:06 UTC ( #728475=note: print w/replies, xml ) Need Help??


in reply to your Perl bug Achilles heel

The CGI thing has bitten me often enough that I've learned to avoid it, but I still have the teeth marks.

What I also tend to get wrong sometimes is the difference in precedence between or and ||, especially in return statements. Usually when I pretend to be terse and write:

sub is_foo_or_bar { return foo($x) or bar($x) } # no! use || here
I don't do this often, but when I do, it can take a long time to debug, because that code looks deceptively sensible.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2020-09-23 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (130 votes). Check out past polls.

    Notices?