Ken Foskey schreef:

> Just like to show how NOT to use postfix.  I have had a frustrating
> day tackling this type of unreadable code.
> 
>>       exec_rqst('stga2k_vps.pl',$FileNameIn) if ($a2kqual[4] eq
>> "VPS");
>>       exec_rqst('stga2kif.sh',$FileNameIn)   if ($a2kqual[4] ne
>> "VPS");
>> 
>> 
>>      if ($a2kqual[4] eq "VPS") {
>>           exec_rqst('stga2k_vps.pl',$FileNameIn);
>>      }
>>      else {
>>           exec_rqst('stga2kif.sh',$FileNameIn);
>>      }

It could be generated code, or maybe the coder anticipated 
side-effects, like @a2kqual getting adjusted inside exec_rqst().

-- 
Affijn, Ruud

"Gewoon is een tijger."

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to