in reply to Re: exiting a if loop
in thread exiting a if loop

I guess that should be
if(HOLIDAY){ $check = TRUE; } elsif ( $time <= 1800){ $check = TRUE; }

Replies are listed 'Best First'.
RE (3) le: exiting a if loop
by nuance (Hermit) on Jun 06, 2000 at 18:31 UTC
    Which is basically what I wrote, what with white space being irrelevant and all. Hey this isn't Python :-)

    Lets face it:

    if(HOLIDAY){$check = TRUE;} elsif ( $time <= 1800){$check = TRUE;}
    Would also work, even if it is slightly less readable

    Nuance

    Baldrick, you wouldn't see a subtle plan if it painted itself purple and danced naked on top of a harpsichord, singing "Subtle plans are here again!"

      I believe he was referring to the use of else if. There is no else if in Perl, you use elsif.
        That's actually what I meant, yes.