Nesh has asked for the wisdom of the Perl Monks concerning the following question:
Now despite this the heading is created 7 times if I run the same script 7 times through a batch file. Thanksopen ERROR, ">>$exceptionoutput" or $log->logdie ("Error opening $exce +ptionoutput file\n"); # Print the headings for the CSV file while(ERROR){ if($_ !~/STATUS CODE([0-9A-Za-z].*)VIP CODE/){ printf ERROR "STATUS CODE,TIMESTAMP,USERID,TRANSACTION TYP +E,POLICY NUMBER,CREATION TYPE,VIP CODE\n"; last; } } close ERROR;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CSV and regular expressions
by Tanktalus (Canon) on Jun 30, 2005 at 00:55 UTC | |
|
Re: CSV and regular expressions
by graff (Chancellor) on Jun 30, 2005 at 02:45 UTC | |
|
Re: CSV and regular expressions
by CountZero (Bishop) on Jun 30, 2005 at 06:02 UTC | |
|
Re: CSV and regular expressions
by sk (Curate) on Jun 30, 2005 at 04:21 UTC | |
|
Re: CSV and regular expressions
by anonymized user 468275 (Curate) on Jun 30, 2005 at 14:43 UTC |