Re: Reverse If and Normal Else

2005-09-22 Thread Jeff 'japhy' Pinyan
On Sep 22, John W. Krahn said: The if statement modifier is just another way to write a logical and statement: $ perl -MO=Deparse -e' display_nothing() if $match_type eq q/none/ ' display_nothing() if $match_type eq 'none'; -e syntax OK $ perl -MO=Deparse -e' $match_type eq q/none/ and display_

Re: Reverse If and Normal Else

2005-09-22 Thread John W. Krahn
Frank Geueke, III wrote: > Hi everyone. Hello, > Okay, so maybe this one is a silly question. I have a > fairly large script and I have a bunch of places where > I'm following a reverse if with a normal else and perl > keeps complaining about it. It seems to make sense to > me, but I guess its

Re: Reverse If and Normal Else

2005-09-22 Thread Wiggins d'Anconia
Frank Geueke, III wrote: > Hi everyone. > Okay, so maybe this one is a silly question. I have a > fairly large script and I have a bunch of places where > I'm following a reverse if with a normal else and perl > keeps complaining about it. It seems to make sense to > me, but I guess its bad synta

Re: Reverse If and Normal Else

2005-09-22 Thread Jeff 'japhy' Pinyan
On Sep 22, Frank Geueke, III said: display_nothing() if ($match_type eq 'none'); else { } Now I like the reverse if because it takes up one line instead of four (I like braces on their own lines - see else). But this error... syntax error at /usr2/login/fjg/hotspot_tracker/search_by_ip_or_mac

Reverse If and Normal Else

2005-09-22 Thread Frank Geueke, III
Hi everyone. Okay, so maybe this one is a silly question. I have a fairly large script and I have a bunch of places where I'm following a reverse if with a normal else and perl keeps complaining about it. It seems to make sense to me, but I guess its bad syntax. Here is one of them: display_not