Re: Help with Error Message: Can't use an undefined value as a hash reference

2003-11-13 Thread R. Joseph Newton
Dan Anderson wrote: There are many references , what line number does it say is evil and which line below is that? Thanks for your help, I have put a -right here - in the code... } $SQL .= \n; } #-right here-- }

Re: Help with Error Message: Can't use an undefined value as a hash reference

2003-11-13 Thread Rob Dixon
R. Joseph Newton wrote: There are many references , what line number does it say is evil and which line below is that? Thanks for your help, I have put a -right here - in the code... } $SQL .= \n; } #-right here--

RE: Help with Error Message: Can't use an undefined value as a hash reference

2003-11-12 Thread Dan Muey
I am using the following code and keep getting a message that says Can't use an undefined value as a hash reference. I'm completely lost trying to debug it because the line in question is a }. I was wondering if any guru could spot some There are many references , what line number does

RE: Help with Error Message: Can't use an undefined value as a hash reference

2003-11-12 Thread Dan Anderson
On Wed, 2003-11-12 at 18:30, Dan Muey wrote: I am using the following code and keep getting a message that says Can't use an undefined value as a hash reference. I'm completely lost trying to debug it because the line in question is a }. I was wondering if any guru could spot some

RE: Help with Error Message: Can't use an undefined value as a hash reference

2003-11-12 Thread Jeff 'japhy' Pinyan
On Nov 12, Dan Anderson said: while (my %hash = %{ shift (@columns) }) { ... } Here is the problem. When @columns is empty, it returns undef, and you can't do %{ +undef }. So, do this: while (my $href = shift @columns) { # then use $href-{...} # or do:

Re: Help with Error Message: Can't use an undefined value as a hash reference

2003-11-12 Thread Tore Aursand
On Wed, 12 Nov 2003 18:29:01 -0500, Dan Anderson wrote: I'm completely lost trying to debug it because the line in question is a }. Well. I'm totally lost, too. There's a lot of things in the code which you can improve to make it more fail-safe, but for now: What line are you referring to?