TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:2586] perl question
Quoting Square Avenue (dfinton@d.umn.edu):
> On Sun, 6 Dec 1998, Ben Luey wrote:
>
> > In perl is there a good way to write a script such that
> >
> > if A and if B, then C
> > if not A then C
> > if A and not B then nothing?
> >
> > I'd like to write the script without typing C in twice. Also, if A, then I
> > need to to some stuff to determine if B is true, so I can't do a combined
> > if (A and B).
>
> simplicity itself....
As my CS profs use to say: K.I.S.S
Keep It Simple Stupid. :-)
--
Bob Tanner <tanner@real-time.com> | Phone : (612)943-8700
http://www.real-time.com | Fax : (612)943-8500
Key fingerprint = 6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9