[UKLUG] Re: LPM: unless ($line =~ /^#/)

Rich Bowen rbowen at rcbowen.com
Fri Dec 29 21:13:12 CST 2000


Ronald Edward Petty wrote:
> 
> so can u do
> unless()
> {
> }
> else
> {
> }
> 
> and else be the say the opposite? kinda like if.

Well, yes, you can do unless, else, but it seems rather backwards. It's
good style to program as you would speak or think. unless ... else  is
potentially confusing, and I would think that it would be a good idea to
avoid it.

-- 
Rich Bowen --  Director of Web Application Development
http://www.cre8tivegroup.com/  --  rich at cre8tivegroup.com
Have trouble remembering things?   http://www.idforgetmyhead.com/



More information about the Lexington-pm mailing list