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

Either or statement

Expand Messages
  • Dukelow, Don
    I know I Perl there is a statement like ($a
    Message 1 of 3 , Oct 19, 2007
    • 0 Attachment
      I know I Perl there is a statement like

      ($a < $b) "return $c" or "return $d";

      Something like that. I don't know what it is call or can't find the
      command.

      Can someone point me in proper direction?

      -----
      Don Dukelow
    • a_z0_9_blah
      ... This is the conditional operator, http://perldoc.perl.org/perlop.html#Conditional-Operator
      Message 2 of 3 , Oct 19, 2007
      • 0 Attachment
        --- In perl-beginner@yahoogroups.com, "Dukelow, Don" <dukelow@...>
        wrote:
        >
        > I know I Perl there is a statement like
        >
        > ($a < $b) "return $c" or "return $d";
        >
        > Something like that. I don't know what it is call or can't find the
        > command.
        >
        > Can someone point me in proper direction?
        >
        > -----
        > Don Dukelow
        >

        This is the conditional operator,
        http://perldoc.perl.org/perlop.html#Conditional-Operator
      • Dukelow, Don
        That s it think you! ... Don Dukelow ________________________________ From: perl-beginner@yahoogroups.com [mailto:perl-beginner@yahoogroups.com] On Behalf Of
        Message 3 of 3 , Oct 19, 2007
        • 0 Attachment
          That's it think you!


          -----
          Don Dukelow




          ________________________________

          From: perl-beginner@yahoogroups.com
          [mailto:perl-beginner@yahoogroups.com] On Behalf Of a_z0_9_blah
          Sent: Friday, October 19, 2007 2:57 PM
          To: perl-beginner@yahoogroups.com
          Subject: [PBML] Re: Either or statement



          --- In perl-beginner@yahoogroups.com
          <mailto:perl-beginner%40yahoogroups.com> , "Dukelow, Don" <dukelow@...>
          wrote:
          >
          > I know I Perl there is a statement like
          >
          > ($a < $b) "return $c" or "return $d";
          >
          > Something like that. I don't know what it is call or can't find the
          > command.
          >
          > Can someone point me in proper direction?
          >
          > -----
          > Don Dukelow
          >

          This is the conditional operator,
          http://perldoc.perl.org/perlop.html#Conditional-Operator
          <http://perldoc.perl.org/perlop.html#Conditional-Operator>






          [Non-text portions of this message have been removed]
        Your message has been successfully submitted and would be delivered to recipients shortly.