On a related (im|ex)plicit note, I argued once when I was at uni about this code:
The lecturer insisted that I should take out the else and leave the last return dangling there. I still don't know which I prefer.sub fred { if ($_[0] == 'ooyah') { return 1; } else { return 0; } }
In reply to Re: (crazyinsomniac) Re: Coding superstitions
by n3dst4
in thread Coding superstitions
by George_Sherston
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |