[Pdx-pm] the quest for return_if

Colin Kuskie ckuskie at dalsemi.com
Tue Jun 26 16:17:03 PDT 2007

On Tuesday 26 June 2007 16:03, benh wrote:
> so at work I'm trying to clean up this big decision tree and I came up
> with the idea to have a return_if sub... seems easy, looks clean. The
> plan was to take this big waterfall if-else block and start to invert
> the logic a bit to clean things up... this would help to reduce things
> to nice clean, easy to read lines. Alas I'm horribly lost and figured
> I would enlist some help.

That kind of sounds like magic goto.  See the last part of the goto
entry in perldoc -f goto.


More information about the Pdx-pm-list mailing list