> -----Original Message-----
> From: raptor [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, July 28, 2001 12:32 PM
> To: Sterin, Ilya; [EMAIL PROTECTED]
> Subject: Re: if then else otherwise ...
>
>
> I've/m never used/ing "elseif" ( i hate it :")  from the time I
> have to edit
> a perl script of other person that had 25 pages non-stop if-elsif
> sequence)

I'm lost.  How would you decrease the number of elsif statements with
otherwise???  And as a matter effect the new perl switch construct would
take care of that.  It would be called switch but rather I believe given, if
I remember right.

Ilya


> ... never mind there is two conditions in your example...
> of coruse i've think of this just like a shortcut nothing special
> ... later
> on :
>
> $x = cond ? $then : $else : $otherwise;#at least this is a good
> shortcut :")
>
>
> > What's the point, you can accomplish the same with if/elsif/else.  Maybe
> I'm
> > not understanding this correctly, but
> >
> > if (cond)
> > {}
> > elsif (cond)
> > {}
> > else
> > {}
> >
> > Ilya
>

Reply via email to