Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Is the syntax correct on these two lines of code?

Expand Messages
  • Jenda Krynicky
    To: perl-beginner@yahoogroups.com From: Jeff japhy Pinyan Date sent: Tue, 23 Nov 2004 10:42:21 -0500 (EST)
    Message 1 of 8 , Nov 23, 2004
    • 0 Attachment
      To: perl-beginner@yahoogroups.com
      From: Jeff 'japhy' Pinyan <japhy@...>
      Date sent: Tue, 23 Nov 2004 10:42:21 -0500 (EST)
      Subject: Re: [PBML] Is the syntax correct on these two lines of code?
      Send reply to: perl-beginner@yahoogroups.com

      >
      > On Nov 23, Jenda Krynicky said:
      >
      > > aFunction $x, $y and anotherFunction;
      > >and
      > > aFunction $x, $y && anotherFunction;
      > >
      > >The first one calls aFunction($x, $y) and then if the return value is
      > >true calls anotherFunction(). The second one first checks whether the
      > >value of $y is true, if yes it calls aFunction($x, $y), if not it
      > >calls anotherFunction() and then aFunction($x,
      > >the_return_value_of_anotherFunction).
      >
      > Almost. The seecond one send $y's value to aFunction() if $y's value
      > is FALSE, and will send anotherFunction()'s value to aFunction() if
      > $y's value is TRUE.

      Erm. Yes, thanks for the correction. GOK why, but I was thinking of
      || ...

      Jenda
      ===== Jenda@... === http://Jenda.Krynicky.cz =====
      When it comes to wine, women and song, wizards are allowed
      to get drunk and croon as much as they like.
      -- Terry Pratchett in Sourcery
    Your message has been successfully submitted and would be delivered to recipients shortly.