Click here to get back home

Re: remembering parameters

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Re: remembering parameters xhoster 04-07-2008
Posted by xhoster on April 7, 2008, 6:00 pm
Please log in for more thread options
> Hi,
> I have two queries -- I pass the result of the SELECT query to a stored
> procedure. The result from the SELECT query is different during every
> pass and I somehow need to remember the old value and pass that to the
> store procedure when next time the perl script runs. I would appreciate
> some help.

That is an interesting requirement. If the thing to be given to the
prepared statement on execution N is the thing returned by the select
in execution N-1, then what is to be given to the prepared statement
when N==1?

Since you are already using a database, I'd use the database to store
what needs to be stored between executions. That way you have to worry
less about what happens in case of crashes.

But most of all I'd seriously reconsider if this is really the best way
to go about solving whatever it is that I was trying to solve.

Xho

--
-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.

Similar ThreadsPosted
Remembering Matched Values August 5, 2005, 11:06 am
sub in a package with parameters May 12, 2005, 11:07 am
array parameters October 24, 2004, 11:40 am
perl script with parameters (using xml) November 8, 2004, 10:10 pm
how *.cgi file can get the parameters from client? November 20, 2004, 8:08 pm
passing parameters from xsl to cgi script November 23, 2004, 1:11 pm
Parameters in command line February 20, 2005, 12:31 pm
Perl 'DO' command with parameters?? April 5, 2006, 9:22 am
perldb -- spaces in parameters August 16, 2006, 11:50 am
I do not manage to read all the parameters since my cgi March 21, 2007, 3:41 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap