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: Regular Expressions: Re: [007bindu] reading multiple sql queries from a file.: Edit Log



sycoogtit
User

Sep 6, 2008, 9:36 PM


Views: 3163
Re: [007bindu] reading multiple sql queries from a file.

I'm not sure what the question is here. You want Func1 to be something like this?


Code
open(FILE, "sql_queries.txt"); 
while(<FILE>) {
chomp;
$query = $_;
$sth = $dbh->prepare($query);
...
}
close(FILE);


Edit:
I just realized this is in the regex forum. Am I way off on what you're looking for, or should this be in a different forum?

--
http://bunsooter.com


(This post was edited by sycoogtit on Sep 6, 2008, 9:39 PM)


Edit Log:
Post edited by sycoogtit (User) on Sep 6, 2008, 9:39 PM


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

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