Apr 26, 2015, 11:40 PM
Post #4 of 5
Hi Chris, Laurent,
Re: [Laurent_R] Useless use of defined operator in void context
[In reply to]
Apology for delayed reply... I decided to takeout the if condition that is causing the warning message. I just directly print the log regardless if some/or all of the variables are empty/undef:
$log->info("Data extracted >> Customer:", $CustName, "|Product:", $sProd, "|Lot:", $sLot, "|Stage:", $Tstage, "|Run Type:", $RetIndex, "|Alarm Type:", $repType, "|Parts Count:", $exeCount, "|Filename:", $FileN, "|Test Date:", $startT, "|SplitLotID:", $splitLot);
That took out the warning message & can still tell me for each file I process if there are some variables missing.
Thanks much for your continued support!!!... PerlGuru.com is helping me a lot in learning & doing some good stuff...