Re: Unexpected Behavior in try/catch

2008-11-19 Thread Chas. Owens
On Wed, Nov 19, 2008 at 18:04, Dr.Ruud <[EMAIL PROTECTED]> wrote: > "Chas. Owens" schreef: > >> eval { snip >> } >> if ($@) { snip >> }; snip Of course it would also be a good idea to move the useless semi-colon from the if up to the eval. That is what I get for not testing the code outside the b

Re: Unexpected Behavior in try/catch

2008-11-19 Thread Dr.Ruud
"Chas. Owens" schreef: > eval { >$sql = qq { >INSERT INTO table ( >field1, >field2, >field3, >field4, >field5 >) >VALUES (

Re: Unexpected Behavior in try/catch

2008-11-19 Thread Chas. Owens
On Wed, Nov 19, 2008 at 06:06, Rob Wilkerson <[EMAIL PROTECTED]> wrote: > The truth is that I know enough Perl to get by when I absolutely have > to use it, so maybe this is the correct behavior, but having never > seen it in any other language, I thought I'd post the question to the > group and ma

Unexpected Behavior in try/catch

2008-11-19 Thread Rob Wilkerson
The truth is that I know enough Perl to get by when I absolutely have to use it, so maybe this is the correct behavior, but having never seen it in any other language, I thought I'd post the question to the group and maybe learn something. I have a scenario where I need to try to insert a record i