Re: How to do a static variable that persists from page to page

2006-05-02 Thread Jay Savage
On 5/1/06, Luke, David <[EMAIL PROTECTED]> wrote: Mary, Your program should not "wait" for a web user to click a link or a Submit button -- ever. There are no cpu cycles and there is no storage reserved once you finish building the web page. Your whole program should draw a web page and exit. T

RE: How to do a static variable that persists from page to page

2006-05-02 Thread Luke, David
Mary, Your program should not "wait" for a web user to click a link or a Submit button -- ever. There are no cpu cycles and there is no storage reserved once you finish building the web page. Your whole program should draw a web page and exit. The user is then not wasting your time (and money) wh

Re: How to do a static variable that persists from page to page

2006-04-28 Thread Ovid
--- Jay Savage <[EMAIL PROTECTED]> wrote: > It's actually Data::Dumper, and yes, it's a cpan module. It turns > Perl data structures into a format that can be evaled to recreate > the original structure. Using "eval" is a great reason why this solution is so dangerous. Once anyone with even a pas

Re: How to do a static variable that persists from page to page

2006-04-28 Thread Mr. Shawn H. Corey
On Fri, 2006-28-04 at 14:45 -0400, Mr. Shawn H. Corey wrote: > Both Storable and Data::Dumper are part of the standard Perl install. > You should already have them on your machine. To check if a module is > already loaded: > > perl -M -e "" > > Replace with the module full name, e.g: perl -MSt

Re: How to do a static variable that persists from page to page

2006-04-28 Thread David Dorward
On Fri, 2006-04-28 at 14:27 -0400, Jay Savage wrote: > POST and GET aren't CGI...at least not exactly. They're part of the > HTML spec, and deal with what happens when you click the submit button > on an HTML form. No, they are part of HTTP, not HTML. > GET appends the form elements to the url,

Re: How to do a static variable that persists from page to page

2006-04-28 Thread Mr. Shawn H. Corey
On Fri, 2006-28-04 at 14:27 -0400, Jay Savage wrote: > It's actually Data::Dumper, and yes, it's a cpan module. It turns Perl > data structures into a format that can be evaled to recreate the > original structure. Storable is another cpan module--no, it's not part > of Data::Dumper--that is design

Re: How to do a static variable that persists from page to page

2006-04-28 Thread Jay Savage
On 4/28/06, Mary Anderson <[EMAIL PROTECTED]> wrote: >Hu Jay, Thanks for the reply. There is a lot I don't know to chew on. Could you just clue me in on a few things: DATA::Dumper must be a perl module on CPAN? POST and GET are elementary CGI commands that I had better learn fast i

Re: How to do a static variable that persists from page to page

2006-04-28 Thread Jay Savage
On 4/28/06, Sean Davis <[EMAIL PROTECTED]> wrote: On 4/27/06 10:19 PM, "Mary Anderson" <[EMAIL PROTECTED]> wrote: > > > > > Hi, >I have a cgi program that pulls data out of a database and stores it in > an array ref. I would like to display this data one row at a time. > Unfortunately I

Re: How to do a static variable that persists from page to page

2006-04-28 Thread Sean Davis
On 4/27/06 10:19 PM, "Mary Anderson" <[EMAIL PROTECTED]> wrote: > > > > > Hi, >I have a cgi program that pulls data out of a database and stores it in > an array ref. I would like to display this data one row at a time. > Unfortunately I am having difficulty getting the current index t