develooper Front page | perl.beginners | Postings from April 2010

How to manage large Conditional Statement

Thread Next
From:
Mimi Cafe
Date:
April 20, 2010 20:56
Subject:
How to manage large Conditional Statement
Message ID:
l2kd61d1bce1004202056oc7f838f1m11a4ac24c2c5a6bc@mail.gmail.com
I need to evaluate a statement in an if, elsif, else block, and the
statement to evaluate in the elsif is too large as I need to run a SQL query
and act on the return value.
What would be a better way to achieve this? Putting the SQL statement
elsewhere outside the block cannot be right, so I am wondering what to do
here.




Mimi

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About