You are absolutely right. That's what I've done to solve the problem. I have to reassign the $@ to something else.
Thanks a lot! Ming On Wed, Mar 31, 2010 at 9:41 AM, Michael Peters <mpet...@plusthree.com> wrote: > On 03/30/2010 09:47 AM, my600080 wrote: > >> I tried to use $...@->printStackTrace() but it kept generating the >> following error: Can't call method "getStackTrace" without a package >> or object reference. > > It's my guess that $@ is being reassigned somewhere (from another eval > somewhere else deep in the method calls). It's a best practice to assign $@ > to something else if you're going to do more than just casually inspect it. > > if( my $e = $@ ) { > ... > } > > -- > Michael Peters > Plus Three, LP >