JimRobinson has asked for the wisdom of the Perl Monks concerning the following question:
I am calling a perl script from unix that simply reads in a cvs file and formats it as an xls file. There are instances where a field characters in it that causes perl to cough. In my case it is the inch " character. In my code the parsing problems for these csv records are ignore and written out in the ksh log but not returning a bad status...
else { my $err = $csv->error_input; print "Text::CSV_XS parse() failed on argument: ", $err, "\n"; }
Is there a way to pass this out to unix as a bad status and retain the parsing errors generated in my example?
Edited by planetscape - added code tags and rudimentary formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Returning a bad status back to the parent UNIX process
by Hue-Bond (Priest) on Jul 27, 2006 at 12:48 UTC | |
by JimRobinson (Initiate) on Jul 27, 2006 at 12:55 UTC | |
by Hue-Bond (Priest) on Jul 27, 2006 at 13:09 UTC | |
by derby (Abbot) on Jul 27, 2006 at 13:21 UTC |