While this works for most of the files where this condition is not satisfied, certain files do meet this criteria and hence the script exits prematurely! When I changed this to skip to the next record, it worked like a charm!if( $variable > $certain_value) { exit; }
Lessons Learned Even if it takes time to run a script line by line using the debugger, spend this time to save your sanity!if( $variable > $certain_value) { next RECORD; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How a baisc debugging effort restored my sanity!
by Anonymous Monk on Feb 23, 2011 at 00:02 UTC | |
by cavac (Prior) on Mar 01, 2011 at 21:29 UTC | |
|
Re: How a baisc debugging effort restored my sanity!
by vkon (Curate) on Feb 23, 2011 at 17:51 UTC | |
by Tux (Canon) on Mar 02, 2011 at 07:14 UTC | |
by vkon (Curate) on Mar 02, 2011 at 10:41 UTC | |
by Tux (Canon) on Mar 02, 2011 at 14:47 UTC | |
by vkon (Curate) on Mar 03, 2011 at 07:36 UTC | |
| |
|
Re: How a baisc debugging effort restored my sanity!
by GotToBTru (Prior) on Mar 09, 2011 at 21:32 UTC |