TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

perl question



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).

Hope this makes sense,

Ben



Ben Luey
lueyb@carleton.edu
ICQ: 19144397

Some people are born on third base, but think they hit a triple.    
       -- Jim Hightower