RE: if then else otherwise ...

2001-07-28 Thread Sterin, Ilya
> -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

Re: if then else otherwise ...

2001-07-28 Thread David Grove
Oh boo hoo. Might I suggest a good introductory Perl book? p On Saturday 28 July 2001 12:32, raptor wrote: > 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) ... never mind there is two c

Re: if then else otherwise ...

2001-07-28 Thread raptor
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) ... 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 =

RE: if then else otherwise ...

2001-07-28 Thread Sterin, Ilya
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 > -Original Message- > From: raptor [mailto:[EMAIL PROTECTED]] > Sent: Saturday, July 28, 2001 9:35 AM > To: [EMAIL PROTECTED] > S

if then else otherwise ...

2001-07-28 Thread raptor
hi, we have <=> and 'cmp' operators but we don't have the conditional constroct to use better their result : May be forthcomming switch will solve this in some way, but isn't it better to have shortcut like this : if (cond) { } else {} otherwise {} i.e. if cond == 1 then 'then-block' if cond