if (defined(foo_2)){ do bar; }; elsif (defined(foo_1)){ do foo_2; }; else { do foo_1; }; [download]
In reply to Is this an efficient way check for certain conditions? by Zecho