On Tue, Jun 25, 2013 at 9:23 AM, shawn wilson <ag4ve...@gmail.com> wrote:
>
> On Jun 25, 2013 3:11 AM, "lee" <l...@yun.yagibdah.de> wrote:

>> I'm not sure what you mean --- other programming languages I know don't
>> have two different kinds of 'if's and the irregularities involved with
>> that.

> How does perl have "different kinds of if' s"? I don't think I read that in
> the docs?

I think Lee is referring to the fact that conditionals (not just 'if',
but all conditionals) can be used in one of two ways, as compound
statements:

  CONDITIONAL (TEST) {
    BLOCK
  }

or as statement modifiers:

  STATEMENT CONDITIONAL TEST;

Lee, have you read the 'statement modifiers' and 'compound statement'
portions of 'perldoc perlsyn'? You may find that this clarifies this
issue for you.

j.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to