Zecho has asked for the wisdom of the Perl Monks concerning the following question:
if (defined(foo_2)){ do bar; }; elsif (defined(foo_1)){ do foo_2; }; else { do foo_1; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is this an efficient way check for certain conditions?
by blakem (Monsignor) on Aug 23, 2001 at 12:42 UTC | |
|
Re: Is this an efficient way check for certain conditions?
by Sifmole (Chaplain) on Aug 23, 2001 at 16:19 UTC | |
|
Re: Is this an efficient way check for certain conditions?
by htoug (Deacon) on Aug 23, 2001 at 13:24 UTC | |
|
Re: Is this an efficient way check for certain conditions?
by MZSanford (Curate) on Aug 23, 2001 at 12:47 UTC | |
|
Re: Is this an efficient way check for certain conditions?
by George_Sherston (Vicar) on Aug 23, 2001 at 12:47 UTC | |
by Zecho (Hermit) on Aug 23, 2001 at 15:05 UTC |