in reply to Re: Quote-like operators in a hash
in thread Quote-like operators in a hash
while(my($key,$value)=each(%sqlASDOverall)) { print sqlExecute($value,$key) }
sub sqlExecute { my @results; my $sth = $dbh->prepare($_[0]); $sth->execute() || die print "Could not execute SQL query :\n$_[0] +\n",$sth->erstr(),"\n"; while (my $result = $sth->fetchrow_array()) { push @results, $result; } return @results; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Quote-like operators in a hash
by Rodster001 (Pilgrim) on Jan 05, 2009 at 18:49 UTC | |
|
Re^3: Quote-like operators in a hash
by Bloodnok (Vicar) on Jan 05, 2009 at 17:49 UTC | |
by tux402 (Acolyte) on Jan 05, 2009 at 19:00 UTC | |
by kyle (Abbot) on Jan 05, 2009 at 19:10 UTC | |
by tux402 (Acolyte) on Jan 05, 2009 at 19:15 UTC | |
by wol (Hermit) on Jan 06, 2009 at 11:10 UTC |