in reply to Re^5: How to eliminate warning message on hash value?
in thread How to eliminate warning message on hash value?

Well, I wrote this code today and I think it illustrates this style better...

Of course what these variables mean is completely out of context, but I can't imagine the horror of this expressed as nested "if's". Call it "zigzag indenting" or whatever.

For more complex "if" statements, I do think this has a certain regularity that is pleasing to the eye. Mileage varies.

print if ( exists ($noBye4Call{$rCall} ) and ($rNr > 10 ) and ($GP{STATUS} eq 'G' ) and ($GP{SCORE} eq 'BYE') );

Replies are listed 'Best First'.
Re^7: How to eliminate warning message on hash value?
by ikegami (Patriarch) on Dec 31, 2011 at 07:40 UTC
    [ Sorry, didn't see this reply earlier ]

    For more complex "if" statement

    Yes, different styles work better in different circumstances.

    I do think this has a certain regularity that is pleasing to the eye

    Really, then why did you switch style in your example? You stop aligning your conditions, removed the zigzaging, and added a gazillion parens.

      I think that the style is consistent.
      We are way off topic.
      Let's leave these style things to another day.