[Pdx-pm] sub calling logic

Roderick A. Anderson raanders at acm.org
Tue Dec 16 15:00:14 CST 2003

On Tue, 16 Dec 2003, Randall Hansen wrote:

> This looks fine to me.  Especially if you're potentially "doing it" 
> more than once, you've reduced the amount of code and left yourself 
> only one bit of logic to debug.

Oh yeah.  Plus sometimes I don't know if I need to doit, but the data 

> Here's another way to write that sub:
> sub doit {
> 	return unless [something];
> 	...
> }

I like this!  Gets the exception(s) right up front.

    "Open Source Software - You usually get more than you pay for..."
     "Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL"

More information about the Pdx-pm-list mailing list