About your comment on the $fis->addRule, I am not sure if I understood it. Could you, please, rephrase it?
Your OP contained the following chunk of code:
$fis->addRule(
'quality=bad & speed=slow' => 'award=minimum',
'quality=ok & speed=slow' => 'award=minimum',
'quality=good & speed=slow' => 'award=small',
'quality=excellent & speed=slow' => 'award=small',
'quality=bad & speed=regular' => 'award=minimum',
'quality=ok & speed=regular' => 'award=small',
'quality=good & speed=regular' => 'award=small',
'quality=excellent & speed=regular' => 'award=excellent',
'quality=bad & speed=fast' => 'award=small',
'quality=ok & speed=fast' => 'award=good',
'quality=good & speed=fast' => 'award=good',
'quality=excellent & speed=fast' => 'award=excellent',
'quality=bad & speed=fastest' => 'award=small',
'quality=ok & speed=fastest' => 'award=good',
'quality=good & speed=fastest' => 'award=excellent',
'quality=excellent & speed=fastest' => 'award=excellent',
);
and I was wondering if that could be replaced with just an array (in my
original post), for prevention of errors and maintainability.
Just a thought.
Alex / talexb / Toronto
"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.