http://www.perlmonks.org?node_id=520168

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:

# Read in Data ############################### open (DATABASE, "$data_file"); @data=<DATABASE>; close (DATABASE); chomp @data;
We could reverse the way the data is displayed by adding:
@reverse = reverse @data; @data = @reverse;
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?

jdporter added code tags