Re: [Ledger-smb-devel] Exception handling in Perl or rather: non-local goto's

2011-06-22 Thread Chris Travers
On Wed, Jun 22, 2011 at 12:42 PM, Erik Huelsmann wrote: >> Can you be specific here? > > Yes: studying the pages for Try::Tiny again, their discussion of the > $@ variable is really about Perl's general "behaviour", meaning I was > misunderstanding the discussion to be specifically about Try::Tin

Re: [Ledger-smb-devel] Exception handling in Perl or rather: non-local goto's

2011-06-22 Thread Erik Huelsmann
Hi Chris, On Tue, Jun 21, 2011 at 12:21 AM, Chris Travers wrote: > On Mon, Jun 20, 2011 at 2:49 PM, Erik Huelsmann wrote: >> Last weekend, I added non-local gotos using exception handling to >> replace 'exit;' calls. >> >> Today, mst showed up on IRC (coincidentally), telling me about an >> issu

Re: [Ledger-smb-devel] Exception handling in Perl or rather: non-local goto's

2011-06-20 Thread Chris Travers
On Mon, Jun 20, 2011 at 2:49 PM, Erik Huelsmann wrote: > Last weekend, I added non-local gotos using exception handling to > replace 'exit;' calls. > > Today, mst showed up on IRC (coincidentally), telling me about an > issue with running our code under suEXEC conditions. That bit was > fixed in r

Re: [Ledger-smb-devel] Exception handling in Perl or rather: non-local goto's

2011-06-20 Thread Erik Huelsmann
Thinking about it another second, I might just need to use an eval { } block; after all, I'm not really all that interested in the actual error. I'm only interested in being able to clean up the loose ends such as any open db connections. On Mon, Jun 20, 2011 at 11:49 PM, Erik Huelsmann wrote: >

[Ledger-smb-devel] Exception handling in Perl or rather: non-local goto's

2011-06-20 Thread Erik Huelsmann
Last weekend, I added non-local gotos using exception handling to replace 'exit;' calls. Today, mst showed up on IRC (coincidentally), telling me about an issue with running our code under suEXEC conditions. That bit was fixed in r3304, but as he did some code review, he pointed out my use of Erro