Re: Good God. I'm going to pull my hair out.

2002-03-07 Thread Derrick Wippler
Why did I say CGI? I meant DBI. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Good God. I'm going to pull my hair out.

2002-03-07 Thread Randal L. Schwartz
> "Derrick" == Derrick Wippler <[EMAIL PROTECTED]> writes: Derrick> The thing that puzzles me is, that CGI is supposed to return a reference. s/CGI/DBI/, right? Derrick> So.. Derrick> $rec = $st->fetchrow_arrayref ; Derrick> Should return a Reference to an array. But it's always the

Re: Good God. I'm going to pull my hair out.

2002-03-07 Thread Derrick Wippler
Nice Article, explains alot of questions I've had about addressing and references. The thing that puzzles me is, that CGI is supposed to return a reference. So.. $rec = $st->fetchrow_arrayref ; Should return a Reference to an array. This Reference to an array is then placed in an array. I

RE: Good God. I'm going to pull my hair out.

2002-03-06 Thread Nikola Janceski
ECTED]] Sent: Wednesday, March 06, 2002 3:25 PM To: [EMAIL PROTECTED] Subject: Re: Good God. I'm going to pull my hair out. >>>>> "Derrick" == Derrick Wippler <[EMAIL PROTECTED]> writes: Derrick> Can anyone tell me why " print $rec->[4] " prints

Re: Good God. I'm going to pull my hair out.

2002-03-06 Thread Randal L. Schwartz
> "Derrick" == Derrick Wippler <[EMAIL PROTECTED]> writes: Derrick> Can anyone tell me why " print $rec->[4] " prints Derrick> but print "$recs[0]->[4] does not print a thing ? Ah yes, another candidate to read my "deep copy" article...

Fwd: Re: Good God. I'm going to pull my hair out.

2002-03-06 Thread Derrick Wippler
>ok. I'm sorry. I posted my code incorrectly. I'm using $rec[0]->[4] to try and access the data. ( I was just trying anything to get it to do something, and I didn't change my code back before I posted ) It's a standard multidimensional array. ( yes ? ) I've written many before. I have an exac

Re: Good God. I'm going to pull my hair out.

2002-03-06 Thread Jon Molin
Derrick Wippler wrote: > > Can anyone tell me why " print $rec->[4] " prints > but print "$recs[0]->[4] does not print a thing ? > > I've confimed the data, the first row in the fourth column is an "F" > $rec->[4] prints it, but $recs[0]->[4] does not !!! ARG @#@!#!!!@@!!@!! > PS: I'm us

Re: Good God. I'm going to pull my hair out.

2002-03-06 Thread Jeff 'japhy' Pinyan
On Mar 6, Derrick Wippler said: >Can anyone tell me why " print $rec->[4] " prints >but print "$recs[0]->[4] does not print a thing ? This is a scoping issue. > my @recs; > my $sql = shift; > my $st = $db->prepare($sql); > my $rc = $st->execute(@_); > my $rec; > > while ($rec = $st->fetch

Re: Good God. I'm going to pull my hair out.

2002-03-06 Thread Tanton Gibbs
MAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 06, 2002 2:08 PM Subject: Good God. I'm going to pull my hair out. > Can anyone tell me why " print $rec->[4] " prints > but print "$recs[0]->[4] does not print a thing ? > > I've con

RE: Good God. I'm going to pull my hair out.

2002-03-06 Thread Nikola Janceski
uh... don't you mean? print $rec->[0 .. 4]; # element 0 through 4 or print $rec->[0,4]; ## elements 0 and 4 -Original Message- From: Derrick Wippler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 2:08 PM To: [EMAIL PROTECTED] Subject: Good God. I'm going to

Good God. I'm going to pull my hair out.

2002-03-06 Thread Derrick Wippler
Can anyone tell me why " print $rec->[4] " prints but print "$recs[0]->[4] does not print a thing ? I've confimed the data, the first row in the fourth column is an "F" $rec->[4] prints it, but $recs[0]->[4] does not !!! ARG @#@!#!!!@@!!@!! PS: I'm using DBI, my DBI object is $db my