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

I didn't say it couldn't be done, I said "if" worked better. (No artificial code placement, nested instead of zizag indenting.)
  • Comment on Re^5: How to eliminate warning message on hash value?

Replies are listed 'Best First'.
Re^6: How to eliminate warning message on hash value?
by Marshall (Canon) on Dec 28, 2011 at 00:07 UTC
    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') );
      [ 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.