Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^3: Lady Aleena's first working module

by Tux (Canon)
on Oct 07, 2009 at 18:46 UTC ( #799778=note: print w/replies, xml ) Need Help??

in reply to Re^2: Lady Aleena's first working module
in thread Lady Aleena's first working module

That kind of code will only work of there is just one return, and "" (or the hideous q{} from PBP) is the only possible alternative.
My example just simplifies the pre-emptive returns, and lives in the assumption that the default (after all the returns were done) still needs some real coding.

Personally, I like brevity, and both my code and yours are terse. I do not however think that your code is any clearer than mine. Both are clearer than the code of the OP though.

Enjoy, Have FUN! H.Merijn
  • Comment on Re^3: Lady Aleena's first working module

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2021-04-19 06:57 GMT
Find Nodes?
    Voting Booth?

    No recent polls found