List Info

Thread: Either or statement




Either or statement
country flaguser name
United States
2007-10-19 13:48:53

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

__._,_.___
.

__,_._,___
Re: Either or statement
country flaguser name
United States
2007-10-19 13:57:28

--- In perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com, "Dukelow, Don" <dukelow...>
wrote:
>
&gt; 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?
>
> -----
&gt; Don Dukelow
>

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

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )