in reply to Re^4: Batch processing of files
in thread Batch processing of files
However, when include this code in the entire script, only the first 3 out of 4 files are processed. Is there a reason for this behaviour?
No. It's not the code. I see four possibilities:
After
addmy @files = <substituent_R*.txt>;
use Data::Dumper; $Data::Dumper::Useqq = 1; warn(Dumper(\@files));
Do you see the four files? Are there any weird characters?
If you didn't answered yes and no, post the output and continue.
After
addmy $avg = $sum / $cnt;
warn("Average=$avg\n");
Do you see four averages? Are any of them very near 1?
If you didn't answered yes and no, post the output and continue.
After every line, add
warn(__LINE__, " for $fn_in\n");
Post your output.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Batch processing of files
by austinby (Initiate) on Feb 12, 2010 at 14:26 UTC | |
by Corion (Patriarch) on Feb 12, 2010 at 14:29 UTC |