perl_diver has asked for the wisdom of the Perl Monks concerning the following question:
I've written a pipeline to process some data. The pipeline calls upon some in house developed Perl codes, some third party programs and some system functions to process input file generated by some other third party program.
The system can crash for various reasons, if input file is corrupt, or if those third party programs generate some error because missing data etc.
I wish to run the Perl pipeline in such away that given a list of input files the pipeline would not crash if any of these input files cause a problem and the rest of the good files be processed hassle free.
So far I'm running the pipeline script in a for loop for each single input file using system call and config file
foreach my $f(@Folders){ system "PipeLine.pm $f my.Config.ini"; }
What kind of exception handling shall I use?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Pipeline exception handling
by haukex (Archbishop) on Jul 19, 2016 at 19:57 UTC | |
|
Re: Perl Pipeline exception handling
by Marshall (Canon) on Jul 19, 2016 at 19:57 UTC | |
|
Re: Perl Pipeline exception handling
by Laurent_R (Canon) on Jul 19, 2016 at 21:57 UTC | |
|
Re: Perl Pipeline exception handling
by BrowserUk (Patriarch) on Jul 19, 2016 at 21:29 UTC | |
by perl_diver (Initiate) on Jul 25, 2016 at 16:18 UTC | |
by perl_diver (Initiate) on Jul 28, 2016 at 18:51 UTC | |
by tye (Sage) on Jul 28, 2016 at 19:33 UTC | |
by BrowserUk (Patriarch) on Jul 29, 2016 at 13:14 UTC | |
| |
by BrowserUk (Patriarch) on Jul 28, 2016 at 18:54 UTC |