Dear Andy Bach and Jim Gibson, Thanks for your explanation and throwing light on the issue. It is greatly appreciated. best, Shaji ------------------------------------------------------------------------------- Your talent is God's gift to you. What you do with it is your gift back to God. -------------------------------------------------------------------------------
________________________________ From: Andy Bach <afb...@gmail.com> To: Shaji Kalidasan <shajiin...@yahoo.com> Sent: Friday, 4 October 2013 10:23 PM Subject: Re: Help on exception handling (Try::Tiny) On Fri, Oct 4, 2013 at 5:36 AM, Shaji Kalidasan <shajiin...@yahoo.com> wrote: In otherwords, I want to ignore the say statement in case if an exception is raised. (In the output of the given program, it is printing the total) Either set a flag (scoped outside the for loop) for errors and not print if it's set or move the say line into the try block. -- a Andy Bach, afb...@gmail.com 608 658-1890 cell 608 261-5738 wk