CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Post deleted by zeezack

 



zeezack
Novice

Apr 1, 2008, 4:56 AM

Post #1 of 5 (723 views)
Post deleted by zeezack

 


zeezack
Novice

Apr 2, 2008, 1:47 AM

Post #2 of 5 (711 views)
Post deleted by zeezack [In reply to]

 


KevinR
Veteran


Apr 2, 2008, 1:56 AM

Post #3 of 5 (710 views)
Re: [zeezack] The complicated program [In reply to] Can't Post

Maybe if there is a member of this forum that is very conversant with PHP and Perl they will be willing to help direct you, but considering that this is a forum dedicated to Perl the chances are remote at best. I know nothing about PHP and my SQL skills are limited in the extreme, so I can't help you at all.
-------------------------------------------------


zeezack
Novice

Apr 2, 2008, 3:31 AM

Post #4 of 5 (707 views)
Post deleted by zeezack [In reply to]

 


KevinR
Veteran


Apr 2, 2008, 10:55 AM

Post #5 of 5 (701 views)
Re: [zeezack] The complicated program [In reply to] Can't Post


In Reply To
I more familiar with PHP, but perhaps you guys can help me figure out what is going on with this code....


there is a section here.... that fetches the results from a mysql query...

---

--

Code
while ($sth->fetch) { 
$dbs{$row[0]} = {};
$dbs{$row[0]}->{props} = [@row];
# print join(",", @row), "<BR>\n"; # 1,CELCAT,?,4,Sybase
}


now from my understanding here....

$dbs[$row[0]] = {}; - that makes it an empty array? an initializer of it..


$dbs{$row[0]}->{props} = [@row]; - now does this fill in the results into an element called props...

if you guys can explain in detail what exactly is going on here, it will help me a lot. :)



There is a lot going on there and explaining it in detail is beyond the scope of this forum. You want to get yourself some perl books or start reading tutorials. Here is a good place to start reading about perl:

http://www.perlmonks.com/index.pl?node=Tutorials
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives