trailmonk has asked for the wisdom of the Perl Monks concerning the following question:
We are hoping that an end user will be able to click on a URL link and for that link to point to the last record of our Perl database.
I'm not sure if this helps but, right now, our display.cgi code reads:
We could reverse the way the data is displayed by adding:# Read in Data ############################### open (DATABASE, "$data_file"); @data=<DATABASE>; close (DATABASE); chomp @data;
but this is a quick fix and it is not what we truly desire. We desire that the end user has an option to click on a URL link so that only the last record is displayed. Do you have an perls of wisdom about this?@reverse = reverse @data; @data = @reverse;
jdporter added code tags
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Display last record
by davidrw (Prior) on Dec 31, 2005 at 17:35 UTC | |
by ikegami (Patriarch) on Dec 31, 2005 at 21:17 UTC | |
Re: Display last record
by ikegami (Patriarch) on Dec 31, 2005 at 21:20 UTC | |
by davido (Cardinal) on Jan 01, 2006 at 05:22 UTC | |
Re: Display last record
by TedPride (Priest) on Dec 31, 2005 at 18:32 UTC | |
by Happy-the-monk (Canon) on Dec 31, 2005 at 18:43 UTC | |
Display last record
by trailmonk (Initiate) on Jan 05, 2006 at 05:05 UTC |
Back to
Seekers of Perl Wisdom