Nicole Seitz wrote:
> Hi  there!
>
> Today just a short question: Is there an Immediate If-Function in
> Perl?

Same as C:

   $noun = ( $count == 1 ? 'rabbit' : 'rabbits' );

(parentheses not strictly necessary).

BTW, don't go around calling it an 'immediate if' to Perl people,
it's a 'conditional operator' :)

HTH,

Rob




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to